DlgEnable (statement)

<< Click to Display Table of Contents >>

DlgEnable (statement)

DlgEnable "Name" [, State]

Enables or disables a dialog control in a custom dialog box. A disabled dialog control is shown in gray. It cannot be changed by the user.

This statement can be invoked from inside dialog functions.

The string Name is the name of the dialog control in the dialog box.

If State = 0, the dialog control will be disabled; for all other values of State it will be enabled. If State is not specified, the state of the dialog control will be toggled.

See also: DlgText, DlgVisible, section Dialog boxes

Example:

If ControlID$ = "Chk1" Then

 DlgEnable "Group", 1

 DlgVisible "Chk2"

 DlgVisible "History"

End If