FMX.Forms.TApplication.GetDeviceForm
Delphi
function GetDeviceForm(const FormFamily: string; const FormFactor: TFormFactor): TCommonCustomForm; overload;
function GetDeviceForm(const FormFamily: string): TCommonCustomForm; overload;
C++
TCommonCustomForm* __fastcall GetDeviceForm(const System::UnicodeString FormFamily, TFormFactor* const FormFactor)/* overload */;
TCommonCustomForm* __fastcall GetDeviceForm(const System::UnicodeString FormFamily)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TApplication |
Description
Internally called at run time in order to decide which form will be instantiated.
GetDeviceForm will find and instantiate the form with the best fit dimensions for the current display. This happens when there are several forms that have the same FormFamily.