ObjectDCL Banner

Form_IsEnabled Method

Description

This method will return whether a dialog is enabled or not.

Parameters

MyDialogReference
Reference to the dialog.
ProjectFile
String identifying the project as it was passed in LoadProject.
DialogName
String identifying the dialog by name.

Return Values

Returns the following according to the situation:

  • T if enabled.
  • Nil if the dialog is not found, does not support this function or is disabled.

AutoLISP Syntax

The recommended convention is passing the control identifier directly:

CopyCode imageCopy Code
(Odcl_Form_IsEnabled 
		MyDialogReference [as Reference])

An alternative convention is to identify the control by providing the project file, the dialog name and the control name:

CopyCode imageCopy Code
(Odcl_Form_IsEnabled
		ProjectFile [as String]
		DialogName [as String])

Applies For

ConfigTab, Dockable, Modal, Modeless.

Example

CopyCode imageCopy Code
; Check if the dialog is enabled
(Setq rValue (Odcl_Form_IsEnabled MyProject_MyForm))

See Also

Form_Enable