ObjectDCL Banner

Form_Hide Method

Description

This method will hide a modeless dialog box.

Parameters

MyDialogReference
Reference to the dialog.
ProjectFile
String identifying the project as it was passed in LoadProject.
DialogName
String identifying the dialog by name.
Hide
Boolean specifying whether to hide or show the dialog.
  • Nil (Show again)
  • T (Hide)

Return Values

Returns the following according to the situation:

  • T when successful.
  • Nil if the dialog is not found or the dialog does not support this function.

AutoLISP Syntax

The recommended convention is passing the control identifier directly:

CopyCode imageCopy Code
(Odcl_Form_Hide 
		MyDialogReference [as Reference]
		Hide [as Boolean])

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_Hide
		ProjectFile [as String]
		DialogName [as String]
		Hide [as Boolean])

Applies For

Modeless.

Example

CopyCode imageCopy Code
; Hide the dialog
(Odcl_Form_Hide MyProject_MyForm T)

See Also

Form_Enable, Form_IsActive, Form_Show