FMX.Controls.Presentation.TPresentationProxy.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create; override;
constructor Create(const AModel: TDataModel; const AControl: TControl); overload; virtual;

C++

__fastcall virtual TPresentationProxy()/* overload */;
__fastcall virtual TPresentationProxy(Fmx::Controls::Model::TDataModel* const AModel, Fmx::Controls::TControl* const AControl)/* overload */;

Properties

Type Visibility Source Unit Parent
constructor public
FMX.Controls.Presentation.pas
FMX.Controls.Presentation.hpp
FMX.Controls.Presentation TPresentationProxy

Description

Creates an instance of TPresentationProxy with the specified AModel data model and AControl presented control.

Requests for native presentation control by sending PM_GET_NATIVE_OBJECT message to the Receiver (presentation).

The signature without parameters is only for internal use from the version with parameters. If you explicitly call Create without parameters, Create raises the EArgumentException exception with the following message:

Cannot create presentation proxy with nil model or PresentedControl. Use overloaded version of constructor with parameters and pass correct values.

See Also