Contents Previous Next Subchapters

Determine the Extra Space Needed for a Popup Menu
See Also: addcontrol

Syntax
popupspace

Description
Returns the number of pixels required for space between the inside and outside of a "popupmenu" control. This is the difference between the space reserved for the control in the call to addcontrol and the space available for each line of the menu in the control. It is returned as a two element integer row vector with the first element corresponding to the width and the second element corresponding to the height. This is defined in the include file guisize.oms

Example
If the file guisize.oms has not yet been included, enter the command
     include guisize.oms
If you enter
     popupspace
O-Matrix will respond
     [30, 10]
which is current difference. It is better to use this function instead of the values directly incase these values change in a future version of O-Matrix.