FMX.Styles.TStyleManager.SetStyle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure SetStyle(const Style: TFmxObject); overload;
class procedure SetStyle(const Context: TFmxObject; const Style: TFmxObject); overload;

C++

__classmethod void __fastcall SetStyle(Fmx::Types::TFmxObject* const Style)/* overload */;
__classmethod void __fastcall SetStyle(Fmx::Types::TFmxObject* const Context, Fmx::Types::TFmxObject* const Style)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Styles.pas
FMX.Styles.hpp
FMX.Styles TStyleManager

Description

Sets the active style to the instance specified by the Style parameter.

To set the active style to the native system style, for example Windows theme, pass nil as the Style parameter.

Note: If you call the SetStyle function in the initialization section of a unit on the main project file, before Application.Initialize, then it is applied to all forms.

See Also