VQueryTextWidth


 
Name
  VQueryTextWidth - returns the width of a text string in the font used
in the window.
 
Synopsis
  VQueryTextWidth(win, string, length, width)
  Window win;
  char string[];
  int length;
  int  *width;                          /*RETURN*/
 
Description
  VQueryTextWidth returns the width of a text string in the font used in the
window.
 
Return Value
  0 - work successfully.
  6 - invalid window ID.
 
Parameters
  win - the window whose font ID (fid) is used.
  string - the text string whose width is returned.
  length - the number of characters in the string.
  width - returns the width of string in pixels.
 
Side Effects
  None.
 
Entry Conditions
  If VCreateWindows is not called earlier, VQueryTextWidth prints an
error message to the standard error stream, produces a core dump file and
exits from the current process.
 
Related Functions
VGetWindows, VDrawText, VDisplayImageMessage, VDisplayOverlayMessage.