FMX.StdCtrls.TButton.StyleLookup

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property StyleLookup: string read FStyleLookup write SetStyleLookup default 0;

C++

__property StyleLookup = {default=0};

Properties

Type Visibility Source Unit Parent
property published
FMX.StdCtrls.pas
FMX.StdCtrls.hpp
FMX.StdCtrls TButton

Description

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

FMX.StdCtrls.TButton.StyleLookup inherits from FMX.Controls.TStyledControl.StyleLookup. All content below this line refers to FMX.Controls.TStyledControl.StyleLookup.

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

Sample