From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property StyleLookup: string read FStyleLookup write SetStyleLookup stored IsStyleLookupStored nodefault;


__property System::UnicodeString StyleLookup = {read=FStyleLookup, write=SetStyleLookup, stored=IsStyleLookupStored};


Type Visibility Source Unit Parent
property public
FMX.Controls TStyledControl


Specifies the name of the resource object to which the current TStyledControl is linked.

StyleLookup becomes especially useful with the introduction of Metropolis UI styles. Metropolis UI styles contain lots of styles for buttons, panes, lists, and other control elements. Each control has the default style, but you can change this default style to any style accessible for the class of a control. The StyleLookup property can be used to specify such additional style. In the Object Inspector, you can select in the StyleLookup property the name of an additional style for the control -- like searchbuttontext -- from the general style loaded into the TStyleBook or from the default style for the used platform. See StyleLookup Support for Metropolis UI Controls.

See Also