TCustomSpeedButton.GetGlyphSize function
Gets the size of the glyph within the specified
PaintRect.
Declaration
function GetGlyphSize(Drawing: Boolean; PaintRect: TRect): TSize
; virtualArguments
Drawing | True if the control is drawing, False if the control is measuring its components. |
PaintRect | Client rectangle for the control. |
Function result
TSize instance with the Width (CX) and height ( CY) for the glyph .
Description
GetGlyphSize is a
TSize function used to get the size
of the glyph within the client rectangle specified in the
PaintRect argument. The return value contains the Width (in CX)
and the height (in CY). The member values are retrieved from a scaled image
resolution for the glyph bitmaps in ButtonGlyph. The values are scaled to the
client rectangle using the PixelsPerInch for the Font and the Canvas scaling
factor for the control.
Use GetTextSize to get the Width and height or the Caption displayed on the control.
GetGlyphSize is used in the implementation of the MeasureDraw method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
