Unit 'Buttons' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#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.