Equinox Online Help - Language Reference - A to Z

Home

PopupSize

Applies to
SyntaxPopupSize [XExpression, YExpression, WidthExpression, HeightExpression] [, ObjectName]
Action[Statement] Sets the popup dialog size.
ScopeUsable anywhere.
Notes

This statement sets the size and position of popup dialogs. XExpression and YExpression specify the screen coordinates of the top left hand corner of the dialog. WidthExpression and HeightExpression specify the width and height of the dialog.

Coordinates in Equinox are expressed in snap grid points (tenths of an inch horizontally and fifths of an inch vertically). The position 0, 0 corresponds to the top left of the screen. If you omit any of the arguments they revert to their defaults.

As an alternative to specifying the coordinates of where a dialog should appear, you can use ObjectName. If you assign names to your form objects, you can cause the dialog to appear underneath these objects (where possible) by supplying the name of the object as a string.

Note that after the popup dialog has been displayed, it reverts to its default size and position. You must set the dialog on each occasion that you want it to be different.

CategoryUser dialogs
See Also Alert, AlertBitmaps, AlertButtons, Beep, Edit, HelpAbout, Input, InputPassword, Message, PopupColour_PopupColor, PopupFlags, PopupFont, PopupJustification, PopupTitle
Example

The following example sets the position and size of the dialog for an InputPassword statement.

PopupSize 25, 20, 30, 10
code = InputPassword("Enter your password")
If code <> "morlion" Then Exit Application