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

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

COMBOBOX ADD

Add a string value to a combo box control

COMBOBOX DELETE

Remove a string from a combo box control

COMBOBOX GET TEXT

Retrieve the default text from a combo box

COMBOBOX RESET

Remove all strings from a combo box

COMBOBOX SELECT

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

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 OPTION

Add an option button to a dialog

CONTROL ADD SCROLLBAR

Add a scroll bar control to a dialog

CONTROL ADD TEXTBOX

Add a text box 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 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 UNITSt

Convert dialog units into pixels

FUNCTION/END FUNCTION

Define a Function block

INPUTBOX$

Displays a dialog box containing a prompt

LISTBOX ADD

Add a string value to a list box control

LISTBOX DELETE

Remove a string from a list box control

LISTBOX GET TEXT

Retrieve the default text from a list box control

LISTBOX RESET

Remove all strings from a list box

LISTBOX SELECT

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

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

MSGBOX

Display a message box and get the users Ok/Cancel selection

MSGBOX

Display an informational message box and discard the users selection