Dynamic Dialog Tools Commands

The following functions can be used to create GUI application interfaces:

ACCEL ATTACH

Attach a table of keyboard accelerators to a DDT dialog

CALLBACK FUNCTION

Define a Dialog/Control Callback Function block

CB.CTL

Return the numeric ID of the control sending a callback message

CB.CTLMSG

Return the numeric notification message parameter

CB.HNDL

Return the window handle of the parent dialog receiving the message

CB.LPARAM

Return the numeric value of the lParam& parameter of the message

CB.MSG

Return the numeric value of the message sent by the caller

CB.WPARAM

Return the numeric value of the wParam& parameter of the message

CB.NMCODE

Return the numeric value of the notification message describing the event which occurred

CB.NMHDR

Returns the address (a pointer ) to the NMHDR UDT for this notification message

CB.NMHDR$

Returns the contents of the NMHDR UDT as a dynamic string

CB.NMHWND

Returns the handle of the control which sent this message

CB.NMID

Returns the ID number assigned to the control

CBCTL

Return the numeric ID of the control sending a callback message

CBCTLMSG

Return the numeric notification message parameter

CBHNDL

Return the window handle of the parent dialog receiving the message

CBLPARAM

Return the numeric value of the lParam& parameter of the message

CBMSG

Return the numeric value of the message sent by the caller

CBWPARAM

Return the numeric value of the wParam& parameter of the message

CLIPBOARD GET ITEM

A LONG or DWORD is retrieved from the CLIPBOARD

CLIPBOARD GET TEXT

A text string is retrieved from the CLIPBOARD

CLIPBOARD RESET

The contents of the CLIPBOARD are deleted

CLIPBOARD SET ITEM

A new LONG or DWORD is stored in the CLIPBOARD.

CLIPBOARD SET TEXT

A new text string is stored in the CLIPBOARD.

COMBOBOX ADD

Add a string value to a combo box control

COMBOBOX DELETE

Remove a string from a combo box control

COMBOBOX FIND

Strings in the COMBOBOX are searched to find the first string which begins with the specified characters

COMBOBOX FIND EXACT

Strings in the COMBOBOX are searched to find the first string which exactly matches the specified characters

COMBOBOX GET COUNT

The number of items in the list box of the COMBOBOX is retrieved

COMBOBOX GET SELCOUNT

The number of selected items in the list box of the COMBOBOX is retrieved

COMBOBOX GET SELECT

The index of the currently selected item in the list box of the COMBOBOX is retrieved

COMBOBOX GET STATE

A data item is checked to see if it is currently selected

COMBOBOX GET TEXT

Retrieve the default text from a combo box

COMBOBOX GET USER

Retrieve the value in the user data area of the COMBOBOX

COMBOBOX INSERT

Insert a new data item at a specified location

COMBOBOX RESET

Remove all strings from a combo box

COMBOBOX SELECT

Select a string in a combo box and make it the default selection

COMBOBOX SET TEXT

Replace the string for a specific data item with a new string

COMBOBOX SET USER

Set a value in the user data area of the COMBOBOX

COMBOBOX UNSELECT

All items in a COMBOBOX control are set to an unselected state

CONTROL ADD

Add a custom control to a DDT dialog

CONTROL ADD BUTTON

Add a command button to a dialog

CONTROL ADD CHECK3STATE

Add an auto 3-state checkbox to a dialog

CONTROL ADD CHECKBOX

Add an checkbox to a dialog

CONTROL ADD COMBOBOX

Add a combo box to a dialog

CONTROL ADD FRAME

Add a frame control to a dialog

CONTROL ADD GRAPHIC

Add a graphic control to a dialog

CONTROL ADD IMAGE

Add a non-resizing image control to a dialog

CONTROL ADD IMAGEX

Add an image control to a dialog

CONTROL ADD IMGBUTTON

Add a non-resizing image button to a dialog

CONTROL ADD IMGBUTTONX

Add an image button to a dialog

CONTROL ADD LABEL

Add a text label to a dialog

CONTROL ADD LINE

Add a line control to a dialog

CONTROL ADD LISTBOX

Add a list box control to a dialog

CONTROL ADD LISTVIEW

Add a ListView control to a dialog

CONTROL ADD OPTION

Add an option button to a dialog

CONTROL ADD PROGRESSBAR

Add a ProgressBar control to a dialog

CONTROL ADD SCROLLBAR

Add a scroll bar control to a dialog

CONTROL ADD STATUSBAR

Add a StatusBar control to a dialog

CONTROL ADD TAB

Add a Tab Control to a dialog

CONTROL ADD TEXTBOX

Add a text box control to a dialog

CONTROL ADD TOOLBAR

Add a ToolBar control to a dialog

CONTROL ADD TREEVIEW

Add a TreeView control to a dialog

CONTROL DISABLE

Disable a control so that it no longer accepts user interaction

CONTROL ENABLE

Enable a control so that it can receive user interaction

CONTROL GET CHECK

Get the Check State of a 3-state, checkbox, or option button

CONTROL GET CLIENT

Get the client area dimensions of a control

CONTROL GET LOC

Get the location of the specified control in a dialog

CONTROL GET SIZE

Get the size of a control in the specified dialog

CONTROL GET TEXT

Get the text from a control

CONTROL GET USER

Retrieve a value from the user data area of a DDT control

CONTROL HANDLE

Return a window handle for a given control ID

CONTROL KILL

Remove a control from a dialog

CONTROL POST

Place a message into the message queue of a control (non-blocking)

CONTROL REDRAW

Schedule a control to be redrawn

CONTROL SEND

Send a message to a control and wait for it to be processed

CONTROL SET CHECK

Set the Check State for a 3-state or checkbox control

CONTROL SET CLIENT

Change the size of a control to a specific client area size

CONTROL SET COLOR

Set the foreground and background color of a control

CONTROL SET FOCUS

Set the keyboard focus to the specified control

CONTROL SET FONT

Select a font to be used for a particular Windows Control

CONTROL SET IMAGE

Change the icon or bitmap displayed in an IMAGE control

CONTROL SET IMAGEX

Change the icon or bitmap displayed in an IMAGEX control

CONTROL SET IMGBUTTON

Change the icon or bitmap displayed in an IMGBUTTON control

CONTROL SET IMGBUTTONX

Change the icon or bitmap displayed in an IMGBUTTONX control

CONTROL SET LOC

Move the control to a new location in the dialog

CONTROL SET OPTION

Set the Check State for an option (radio) control

CONTROL SET SIZE

Change the size of a control

CONTROL SET TEXT

Change the text in a control

CONTROL SET USER

Set a value in the user data area of a DDT control

CONTROL SHOW STATE

Change the visible state of a control

DESKTOP GET CLIENT

Retrieve the size of the client area of the desktop, in pixels

DESKTOP GET LOC

Retrieve the location of the top, left corner of the client area of the desktop, in pixels

DESKTOP GET SIZE

Return the size of the specified dialog

DIALOG DISABLE

Disable a dialog so that it no longer responds to user interaction

DIALOG DOEVENTS

Process pending window or dialog messages for modeless dialogs

DIALOG ENABLE

Enable a dialog so that it responds to user interaction

DIALOG END

Close and destroy the specified dialog

DIALOG FONT

Specify the default DDT font and point size

DIALOG GET CLIENT

Return the client size of the specified dialog

DIALOG GET LOC

Return the location of the specified dialog

DIALOG GET SIZE

Return the size of the specified dialog

DIALOG GET TEXT

Retrieve the text in a dialog or window caption

DIALOG GET USER

Retrieve a value from the user data area of a DDT dialog

DIALOG NEW

Create a new dialog in memory, ready for display

DIALOG PIXELS

Convert pixels (device units) into dialog units

DIALOG POST

Place a message in the dialog message queue (non-blocking)

DIALOG REDRAW

Force a dialog and all child controls to be redrawn immediately

DIALOG SEND

Send a message to a dialog and wait for it to be processed

DIALOG SET CLIENT

Change the size of a dialog to a specific client area size.

DIALOG SET COLOR

Set the background color of a dialog to a specific RGB color

DIALOG SET ICON

Change both the dialog icon in the caption, and the icon shown in the ALT+TAB task list

DIALOG SET LOC

Change the position of a dialog

DIALOG SET SIZE

Change the size of a dialog

DIALOG SET TEXT

Set the text in a dialog or window caption

DIALOG SET USER

Set a value in the user data area of a DDT dialog

DIALOG SHOW MODAL

Display and activate a modal dialog

DIALOG SHOW MODELESS

Display and activate a modeless dialog

DIALOG SHOW STATE

Change the visible state of a dialog

DIALOG UNITS

Convert dialog units into pixels

DISPLAY BROWSE

Display a folder selection dialog to return the user's choice

DISPLAY COLOR

Display a color selection dialog to return the user's choice

DISPLAY FONT

Display a  selection dialog to return user choices

DISPLAY OPENFILE

Display an OpenFile selection dialog to return user choices

DISPLAY SAVEFILE

Display a SaveFile selection dialog to return user choices

FONT END

Destroy a font when it is no longer needed

FONT NEW

Create a new font for use with GRAPHIC PRINT, XPRINT, etc

FUNCTION/END FUNCTION

Define a Function block

IMAGELIST ADD BITMAP

An bitmap image is added to the IMAGELIST

IMAGELIST ADD ICON

An icon image is added to the IMAGELIST

IMAGELIST ADD MASKED

A bitmap is added to the icon IMAGELIST

IMAGELIST GET COUNT

The number of images in the IMAGELIST is retrieved

IMAGELIST KILL

The specified IMAGELIST is destroyed

IMAGELIST NEW BITMAP

A new bitmap IMAGELIST structure is created

IMAGELIST NEW ICON

A new icon IMAGELIST structure is created

IMAGELIST SET OVERLAY

Specify an image to be used as an overlay

INPUTBOX$

Displays a dialog box containing a prompt

ISMISSING

Determine whether an optional parameter was passed by the calling code

ISWIN

Determine whether a Control/Dialog/Window currently exists

LISTBOX ADD

Add a string value to a LISTBOX control

LISTBOX DELETE

Remove a string from a LISTBOX control

LISTBOX FIND

Strings in the LISTBOX are searched to find the first string which begins with the specified characters

LISTBOX FIND EXACT

Strings in the LISTBOX are searched to find the first string which exactly matches the specified characters

LISTBOX GET COUNT

The number of items in the LISTBOX is retrieved

LISTBOX GET SELCOUNT

The number of selected items in the LISTBOX is retrieved

LISTBOX GET SELECT

The LISTBOX is searched to find the first selected item

LISTBOX GET STATE

A data item is checked to see if it is currently selected

LISTBOX GET TEXT

Retrieve the default text from a LISTBOX control

LISTBOX GET USER

Retrieve the value in the user data area of the LISTBOX

LISTBOX INSERT

Insert a new data item at a specified location

LISTBOX RESET

Remove all strings from a list box

LISTBOX SELECT

Select a string in a list box and make it the default selection

LISTBOX SET TEXT

Replace the string for a specific data item with a new string

LISTBOX SET USER

Set a value in the user data area of the LISTBOX

LISTBOX UNSELECT

A specified data item in the LISTBOX control is set to an unselected state

LISTVIEW DELETE COLUMN

Delete a column, including its associated header text (if any) from the LISTVIEW control

LISTVIEW DELETE ITEM

The specified data item is deleted from the LISTVIEW control

LISTVIEW FIND

Strings in the LISTVIEW are searched to find the first string which begins with the specified characters

LISTVIEW FIND EXACT

Strings in the LISTVIEW are searched to find the first string which exactly matches the specified characters

LISTVIEW FIT CONTENT

The width of the specified column is adjusted to fit the width of the data items displayed in that column

LISTVIEW FIT HEADER

The width of the specified column is adjusted to fit the width of the data items displayed in that column, and the header text at the top of that column

LISTVIEW GET COLUMN

The width of the designated column is retrieved from the LISTVIEW

LISTVIEW GET COUNT

The number of data items in the LISTVIEW is retrieved

LISTVIEW GET HEADER

Column header text is retrieved from the LISTVIEW

LISTVIEW GET MODE

The display mode of the specified LISTVIEW control is retrieved

LISTVIEW GET SELCOUNT

The number of selected items in the LISTVIEW is retrieved

LISTVIEW GET STATE

A data item is tested to see if it is currently selected

LISTVIEW GET STYLE

Retrieves the current setting of the LISTVIEW controls extended style

LISTVIEW GET TEXT

A string data item is retrieved from the LISTVIEW control

LISTVIEW GET USER

Retrieve the value in the user data area of the LISTVIEW

LISTVIEW INSERT COLUMN

A new vertical column is defined for Report Mode of the LISTVIEW

LISTVIEW INSERT ITEM

A new data item is added to this LISTVIEW control

LISTVIEW RESET

All data items are deleted from the specified LISTVIEW control

LISTVIEW SELECT

The specified string data item is chosen as selected text for the LISTVIEW

LISTVIEW SET COLUMN

Change the width of a LISTVIEW column

LISTVIEW SET HEADER

New column header text is displayed above the specified column on the LISTVIEW control

LISTVIEW SET IMAGE

The specified image is displayed next to the item specified

LISTVIEW SET IMAGE2

The specified image is displayed as a secondary "status" image next to the primary image

LISTVIEW SET IMAGELIST

Attach an IMAGELIST to the LISTVIEW control

LISTVIEW SET MODE

Change the display mode of the specified LISTVIEW control

LISTVIEW SET OVERLAY

The specified overlay image is displayed on top of the image specified

LISTVIEW SET STYLE

Alter the current settings of the LISTVIEW controls extended style

LISTVIEW SET TEXT

The text, if any, for the specified data item is replaced with new text

LISTVIEW SET USER

Set a value in the user data area of the LISTVIEW

LISTVIEW SORT

All of the items in a LISTVIEW are sorted

LISTVIEW UNSELECT

The specified data item is set to an unselected state

LISTVIEW VISIBLE

The specified data item is scrolled, if necessary, to ensure that the data item is visible

PROGRESSBAR GET POS

The current position of the PROGRESSBAR is retrieved

PROGRESSBAR GET RANGE

The current range of the PROGRESSBAR is retrieved

PROGRESSBAR SET POS

Set the current position of the PROGRESSBAR

PROGRESSBAR SET RANGE

Set the minimum and maximum ranges of the PROGRESSBAR

PROGRESSBAR SET STEP

Specify the default increment value to be used by PROGRESSBAR STEP

PROGRESSBAR STEP

Advance the current position of the PROGRESSBAR by the default increment value

MENU ADD POPUP

Add a popup child menu to an existing menu

MENU ADD STRING

Add a string or separator to an existing menu

MENU ATTACH

Attach a menu to a given dialog

MENU DELETE

Delete a menu item from an existing menu

MENU DRAW BAR

Redraw the menu bar for a given dialog

MENU GET STATE

Return the state of a specified menu item

MENU GET TEXT

Return the text associated with a given menu item

MENU NEW BAR

Create a new menu bar

MENU NEW POPUP

Create a new popup menu

MENU SET STATE

Set the state of a specified menu item

MENU SET TEXT

Set the text of a given menu item

MOUSEPTR

Change the mouse pointer (cursor) to a new shape

SCROLLBAR GET PAGESIZE

Retrieve the current page size

SCROLLBAR GET POS

Returns the current position of the SCROLLBAR

SCROLLBAR GET RANGE

Returns the current range of the SCROLLBAR

SCROLLBAR GET TRACKPOS

Retrieve the current position of the scroll box

SCROLLBAR SET PAGESIZE

Set the current page size

SCROLLBAR SET POS

Set the current position of the SCROLLBAR

SCROLLBAR SET RANGE

Set the range of the SCROLLBAR

STATUSBAR SET PARTS

Set the number of parts to be displayed in the STATUSBAR

STATUSBAR SET TEXT

Assign the text to be displayed in the specified part of the STATUSBAR

TAB DELETE

Delete a page from the TAB control

TAB GET COUNT

Return the number of pages in a TAB control

TAB GET DIALOG

Retrieve the handle of the dialog for a specific page in a TAB control

TAB GET SELECT

Returns the currently selected page in a TAB control

TAB INSERT PAGE

Add a new page to a TAB control

TAB RESET

Delete all pages in a TAB control

TAB SELECT

Select a specific page in a TAB control to be the active page

TAB SET IMAGELIST

Assign an IMAGELIST to be used in a TAB control

TOOLBAR ADD BUTTON

Add a button to a TOOLBAR control

TOOLBAR ADD SEPARATOR

Add a separator to a TOOLBAR control

TOOLBAR DELETE BUTTON

Delete a button from a TOOLBAR control

TOOLBAR GET STATE

Get the state of a button on a TOOLBAR control

TOOLBAR GET COUNT

Retrieve the number of buttons on a TOOLBAR control

TOOLBAR SET IMAGELIST

Attach an IMAGELIST to a TOOLBAR control

TOOLBAR SET STATE

Set the state of a button on a TOOLBAR control

TREEVIEW DELETE

Delete a data item from a TREEVIEW control

TREEVIEW GET BOLD

The bold attribute for a data item is retrieved

TREEVIEW GET CHECK

The checkmark attribute for a data item is retrieved

TREEVIEW GET CHILD

Return the handle of the first child item of a specified data item

TREEVIEW GET COUNT

The number of data items in the TREEVIEW is retrieved

TREEVIEW GET EXPANDED

The expanded attribute for the data item is retrieved

TREEVIEW GET NEXT

Return the handle of the next sibling data item

TREEVIEW GET PARENT

The handle of the parent for a specified data item is returned

TREEVIEW GET PREVIOUS

Return the handle of the previous sibling data item

TREEVIEW GET ROOT

The handle of the very first data item (topmost) in the TREEVIEW is retrieved

TREEVIEW GET SELECT

The handle of the currently selected data item is retrieved

TREEVIEW GET TEXT

The text of a specific data item is retrieved

TREEVIEW GET USER

Retrieve the value in the user data area for a specific data item of the TREEVIEW

TREEVIEW INSERT ITEM

Add a new data item to a TREEVIEW control

TREEVIEW RESET

All data items are deleted from the specified TREEVIEW control

TREEVIEW SELECT

Select a specific data item in the TREEVIEW control

TREEVIEW SET BOLD

Set the bold attribute for specific data item

TREEVIEW SET CHECK

Set the checkmark attribute for a specific data item

TREEVIEW SET EXPANDED

Set the expanded attribute for a specific data item

TREEVIEW SET IMAGELIST

Attach an IMAGELIST to a TREEVIEW control

TREEVIEW SET TEXT

The text, if any, for the specified data item is replaced with new text

TREEVIEW SET USER

Set the value in the user data area for a specific data item in the TREEVIEW control

TREEVIEW UNSELECT

All items in the TREEVIEW control are set to an unselected state

WINDOW GET ID

The integer ID for a Window (usually a CONTROL ) is returned

WINDOW GET PARENT

The handle of the parent is retrieved