Syntax |
DlgEnable(ControlName$ | ControlIndex) |
Description |
Returns True if the specified control is enabled; returns False otherwise. |
Comments |
Disabled controls are dimmed and cannot receive keyboard or mouse input. The ControlName$ parameter contains the name of the .Identifier parameter associated with a control in the dialog box template. A case-insensitive comparison is used to locate the specific control within the template. Alternatively, by specifying the ControlIndex parameter, a control can be referred to using its index in the dialog box template (0 is the first control in the template, 1 is the second, and so on). You cannot disable the control with the focus. |
Example |
This example checks the status of a checkbox at the end of the dialog procedure and notifies the user accordingly. Function DlgProc(ControlName$,Action%,SuppValue%) As Integer If Action% = 2 Then
If DlgEnable(i) = True Then |
|
Sub Main() Begin Dialog UserDialog
,,180,96,"Untitled",.DlgProc |
See Also |
DlgControl (statement); DlgEnable (statement); DlgFocus (function); DlgFocus (statement); DlgListBoxArray (function); DlgListBoxArray (statement); DlgSetPicture (statement); DlgText (statement); DlgText$ (function); DlgValue (function); DlgValue (statement); DlgVisible (statement); DlgVisible (function). |
D |