[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  oWin:GetWidth( <cStr> ) -> <nWidth>

------------------------------------------------------------------------------


 PARAMETER:

   <cStr>        Is the string or char for that the pixel length is
               requested

   <oFont>       Is the font that cStr uses. If <oFont>  is not supplied,
               ::GetWidth() will use the font stored in oFont


 DESCRIPTION:

  This method allows you to determine the exact length of a string using a
  certain Font. This can be useful when you want to know if a string can be 
  completely written to a window without being 'clipped', or you want to
  size a MDI Window to the MDI Parent. ::GetWidth() takes the font information
  supplied by <oFont> into account.


See Also: oFont nChrWidth nGetChrHeight GetTextWidth
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson