GETTEXTSIZE function

Purpose: GETTEXTSIZE determines the size, in dialog units or pixels, of a text string, taking into consideration the font size. GETTEXTSIZE is called automatically by the functions BCX_BUTTON, BCX_RADIO, BCX_CHECKBOX, BCX_LABEL, and BCX_SLIDER.


 Syntax:

 size = GETTEXTSIZE(Text$ [, WinHandle, FontHandle])

 Parameters:

  • size Returned SIZE PTR accessed as size->cx and size->cy
  • Text$ String literal or variable of which the size is to be determined.
  • WinHandle [OPTIONAL] Handle to window from which a font handle is obtained for calculating the text size.
  • FontHandle [OPTIONAL] Font handle to use for calculating the text size.