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:

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

 Parameters:

  • Text$ is a string literal or variable of which the size is to be determined.
  • WinHandle [OPTIONAL] is a handle to window from which a font handle is obtained for calculating the text size.
  • FontHandle [OPTIONAL] is a font handle to use for calculating the text size.

 Return Value:

  • SizePtr, the return value, is a SIZE PTR accessed as Size->cx and Size->cy