FMX.Controls.TStyledControl.LookupStyleObject
Delphi
class function LookupStyleObject(const Instance: TFmxObject; const Context: TFmxObject; const Scene: IScene; const StyleLookup, DefaultStyleLookup, ParentClassStyleLookup: string; const Clone: Boolean; const UseGlobalPool: Boolean = True): TFmxObject;
C++
__classmethod Fmx::Types::TFmxObject* __fastcall LookupStyleObject(Fmx::Types::TFmxObject* const Instance, Fmx::Types::TFmxObject* const Context, const _di_IScene Scene, const System::UnicodeString StyleLookup, const System::UnicodeString DefaultStyleLookup, const System::UnicodeString ParentClassStyleLookup, const bool Clone, const bool UseGlobalPool = true);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TStyledControl |
Description
Looks for the style resource object linked to the TStyledControl.
If no style is defined for the current control, LookupStyleObject seeks in the current scene for the active style.
If the current scene does not have a resource object, LookupStyleObject continues the search through the default styles and Parent's style.