
This method will disable or enable a dialog box, or config tab (but not the dockable form) to be enabled or disabled.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_Form_Enable MyDialogReference [as Reference] Enabled [as Boolean]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_Form_Enable ProjectFile [as String] DialogName [as String] ControlName [as String] Enabled [as Boolean]) |
Does not work for the Dockable form or the FileDialog.
When using this call with a Modal dialog box ensure you have the means re-enable the dialog box otherwise AutoCAD will be permantly locked.
Copy Code |
|---|
; Enable the dialog (Odcl_Form_Enable MyProject_MyForm 1) |