Identifier: menu_position[2]

Type

numeric

Description

The default screen position for system dialogs and pop-up menus. The top-left corner of a menu is placed at this position. Note that screen coordinate 0,0 is the top left of the screen.

When menu_position is valid (when both x and y values are greater or equal to 0), menus are placed at the position, ensuring that their top-left corners are visible. Note: on dual-screen Microsoft Windows systems, care should be taken because under certain circumstances this position may not be visible if the rectangle formed by the dual screen configuration is not completely visible.

When menu_position is invalid (when both x and y values are less than 0), menus are placed according to the following rules:

System resource dialogs (choosecolor, choosedir, choosefile, choosefont):

middle of the display

Print dialogs (print):

centred over the window being printed

Pop-up menus (ask, choice, hint, info, ifyes):

the last pop-up menu position (possibly changed by repositioning the last menu by dragging it via mouse button 3), or the middle of the display

The value of menu_position may be changed by assignment. Setting it to <-1,1> will invalidate it, e.g.

menu_position = <-1,-1>

At system startup menu_position is invalid.

See Also

Commands:

ask, choice, hint, ifno, ifyes, print

Functions:

choosecolor, choosedir, choosefile, choosefont