
This method will return whether a dialog is active or not. All dialog boxes that are displayed are referenced in an active dialog list. To find out if a dialog box is active--as in the case where a secondary modeless dialog box has been closed by the user and you need to know if you should call the Form_Close method--use this method to query the active dialog list for the dialog box you need to ensure is present.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_Form_IsActive MyDialogReference [as Reference]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_Form_IsActive ProjectFile [as String] DialogName [as String]) |
ConfigTab, Dockable, FileDialog, Modal, Modeless.
Copy Code |
|---|
; Check if the form is active (Setq rValue (Odcl_Form_IsActive MyProject_MyForm)) |