
This method sets the minimum and maximum extents allowed for a specified dialog box.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy 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:
Copy 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]) |
Applies only to modal and modeless dialogs.
Copy Code |
|---|
; Set the minimum and maximum sizes of the dialog (Odcl_Form_SetDialogMinMaxSizes MyProject_MyForm 100 80 640 480) |
Form_Show, Height, MaxDialogHeight, MaxDialogWidth, MinDialogHeight, MinDialogWidth, Width