Miscellaneous Dialog Control Methods

The following methods are general purpose dialog control methods.

ProcessMessage

>>-aDialogControl~ProcessMessage(--message--,--firstParam--,--secondParam--)-><


The ProcessMessage method sends a Windows message to a dialog control.

Arguments:

The arguments are:

message

The number of the message to be sent to the dialog control.

firstParam,secondParam

Additional arguments specific to the message.

Return value:

The return values are message-specific.

Example:

The following example erases the background of the edit control with the resource ID (symbolic ID) of IDC_EDIT1:

dlgc = MyDialog~GetEditControl("IDC_EDIT1")
WM_ERASEBACKGROUND = "14"~x2d
hdc = dlgc~GetDc
dlgc~ProcessMessage(WM_ERASEBACKGROUND, hdc, 0)
dlgc~FreeDC(hdc)

Note: Use the Windows documentation and Platform SDK to obtain the Window message numbers.

Value

>>-aDialogControl~Value----------------------------------------><


The Value method retrieves the current value of a dialog control.

Return value:

The current value set in the dialog control.

Note: See GetValue for more information.

Value=

>>-aDialogControl~Value=--new_value----------------------------><


The Value= method sets a value for a dialog control.

Arguments:

The only argument is:

new_value

The value assigned to the dialog control.

Example:

The following example selects check box RESTART and deselects check box VERIFY:

MyDialog~GetCheckControl("RESTART")~Value=1
MyDialog~GetCheckControl("VERIFY")~Value=0

Note: See SetValue for more information.