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

TCustomSpeedButton.MeasureDraw

Calculates the Width and Height for theSpeedButton, and optionally renders the control.

Declaration

Source position: buttons.pp line 355

protected procedure TCustomSpeedButton.MeasureDraw(

  Draw: Boolean;

  PaintRect: TRect;

  out PreferredWidth: Integer;

  out PreferredHeight: Integer

);

Description

Used in the implementation of the CalculatePreferredSize and Paint methods.

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