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 */;
Propriétés
| Type | Visibilité | Source | Unité | Parent | 
|---|---|---|---|---|
| function | public | FMX.Forms.pas FMX.Forms.hpp | FMX.Forms | TApplication | 
Description
Appelée de manière interne à l'exécution afin de déterminer la fiche qui sera instanciée.
GetDeviceForm trouve et instancie la fiche ayant les dimensions les plus adaptées à l'affichage en cours. Cela se produit quand il existe plusieurs fiches ayant le même FormFamily.