Contents Previous Next Subchapters

Determining Width of Window Controls on Caption Bar
See Also: addcontrol

Syntax
wincontrolwidth

Description
The space used for window controls in the dialog caption bar cannot be used for the caption itself. This routine returns the difference between the dialogs declared width an the width available for the caption as an integer scalar. It 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
     wincontrolwidth
O-Matrix will respond
     67
which is the pixel width currently used for the window controls. It is better to use this function instead of the values directly incase these values change in a future version of O-Matrix.