Contents Previous Next Subchapters

Determining the Size of a Dialog's Border
See Also: addcontrol

Syntax
bordersize

Description
returns the number of pixels used to draw a dialogs border as a two element integer row vector. The first element is the total border width and the second element is the total border height. This is the difference between the dialogs declared size and the area available for placing controls with in the dialog. This routine 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
     bordersize
O-Matrix will respond
     [8, 25]
which is the number of pixels currently used for the dialogs border. It is better to use this function instead of the values directly incase these values change in a future version of O-Matrix.