Contents Previous Next Subchapters

Determine the Extra Space Needed for a Text Field
See Also: addcontrol


Returns the number of pixels required for space between the inside and outside of a "textfield" control. This is the difference between the space reserved for the control in the call to addcontrol and the space available for the text. 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 routine is defined in the include file guisize.oms

If the file guisize.oms has not yet been included, enter the command
     include guisize.oms
If you enter
O-Matrix will respond
     [10, 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.