Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - <b>method getwidth class twindow</b> http://www.ousob.com [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 METHOD GetWidth  CLASS TWindow
--------------------------------------------------------------------------------
Syntax:
   TWindow:GetWidth( <cText>, <oFont> )  -->

Parameters:

<cText>     The text string for which the length is to be determined.

<oFont>     The font that should be taken into account when determining the length of
            the string. If <oFont> is not supplied GetWidth will use the font stored
            in ::oFont.

Purpose:
This method allows you to determine what the exact length is of a string, when it is
written to this window. This can be useful if you want to determine
beforehand if a string can be completely written to this window without
being 'clipped'. GetWIdth() takes into account the font information supplied
by <oFont> (if passed). If <oFont> is not supplied the default font for the window is
used.

seealso:




Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson