ObjectDCL Banner

Form_SetDialogMinMaxSizes Method

Description

This method sets the minimum and maximum extents allowed for a specified 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.
MinWidth
Integer identifying the minimum width to apply.
MinHeight
Integer identifying the minimum height to apply.
MaxWidth
Integer identifying the maximum width to apply.
MaxHeight
Integer identifying the maximum height to apply.

Return Values

Returns the following according to the situation:

  • T when successful.
  • Nil if the form is not found or the form does not support the operation.

AutoLISP Syntax

The recommended convention is passing the control identifier directly:

CopyCode imageCopy Code
(Odcl_Form_SetDialogMinMaxSizes 
		MyDialogReference [as Reference]
		MinWidth [as Integer]
		MinHeight [as Integer]
		MaxWidth [as Integer]
		MaxHeight [as Integer])

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_SetDialogMinMaxSizes
		ProjectFile [as String]
		DialogName [as String]
		ControlName [as String]
		MinWidth [as Integer]
		MinHeight [as Integer]
		MaxWidth [as Integer]
		MaxHeight [as Integer])

Remarks

Applies only to modal and modeless dialogs.

Applies For

Modal, Modeless.

Example

CopyCode imageCopy Code
; Set the minimum and maximum sizes of the dialog
(Odcl_Form_SetDialogMinMaxSizes MyProject_MyForm 100 80 640 480)

See Also

Form_Show, Height, MaxDialogHeight, MaxDialogWidth, MinDialogHeight, MinDialogWidth, Width