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

TCustomSpeedButton.MeasureDraw

Calculates the Width, Height, and layout for the speed button and optionally renders the control.

Declaration

Source position: buttons.pp line 373

protected procedure TCustomSpeedButton.MeasureDraw(

  Draw: Boolean;

  PaintRect: TRect;

  out PreferredWidth: Integer;

  out PreferredHeight: Integer

);

Arguments

Draw

  

True if the background and content for the control are drawn. False to calculate the preferred width and height only.

PaintRect

  

Drawing area on the canvas where the content is positioned.

PreferredWidth

  

Returns the preferred width calculated for the control.

PreferredHeight

  

Returns the preferred height calculated for the control.

Description

Used in the implementation of the CalculatePreferredSize and Paint methods.


Version 3.2 Generated 2024-02-25 Home