[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'InterfaceBase' (#lcl)

TWidgetSet.GetTextExtentPoint

Computes the display width and height of an string.

Declaration

Source position: winapih.inc line 152

public function TWidgetSet.GetTextExtentPoint(

  DC: HDC;

  Str: PChar;

  Count: Integer;

  var Size: TSize

):Boolean; virtual;

Arguments

DC

  

The display DC.

Str

  

The text.

Count

  

The number of bytes in Str, -1 for automatic detection.

Size

  

Receives the total width and height of the required display area.

Function result

False on failure.

Errors

May not work properly without Unicode support.

See also

TWidgetSet.GetTextExtentExPoint

  

Calculates the number of characters, that fit into some horizontal space.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.