FMX.Controls.Presentation.TPresentedControl.DoSetSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DoSetSize(const ASize: TControlSize; const NewPlatformDefault: Boolean; ANewWidth, ANewHeight: Single;
var ALastWidth: Single; var ALastHeight: Single): Boolean; override;

C++

virtual bool __fastcall DoSetSize(Fmx::Types::TControlSize* const ASize, const bool NewPlatformDefault, float ANewWidth, float ANewHeight, float &ALastWidth, float &ALastHeight);

Properties

Type Visibility Source Unit Parent
function protected
FMX.Controls.Presentation.pas
FMX.Controls.Presentation.hpp
FMX.Controls.Presentation TPresentedControl

Description

Sends a PM_SET_SIZE message to the presentation layer through its presentation proxy.

DoSetSize does not set the specified dimensions (ANewWidth, ANewHeight) directly. Instead, DoSetSize requests a recommended size to the presentation layer based on the specified dimensions, and sends that recommended size within the message.

DoSetSize returns True if the new (recommended) dimensions match the current dimensions, or False otherwise.

For details about the circumstances that trigger this procedure, see TStyledControl.DoSetSize.

See Also