FMX.Controls.TStyledControl

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Controls.TControlFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTStyledControl

Delphi

TStyledControl = class(TControl)

C++

class PASCALIMPLEMENTATION TStyledControl : public TControl

Properties

Type Visibility Source Unit Parent
class public
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls FMX.Controls

Description

TStyledControl is the base class for customizable and user-interaction controls.

TStyledControl extends TControl to act as the immediate superclass for concrete user-facing widgets.

For descendants of TStyledControl, you can set the style resource and the basis for FireMonkey's dynamic look-and-feel. Subclasses of TStyledControl search their style resource among those assigned to the StyleBook property of the form, using a simple search routine based on class names returned by the GetStyleObject method. The access to the subcomponents defined by the same style permits the parent control to be modified at run time. To apply a style to a control, set the StyleLookup property to the name of the style.

For more details about the style and design of FireMonkey components, see FireMonkey Component Rendering and Customizing with Styles.

Descendants of TStyledControl are controls like TPanel, TLabel, TCheckBox, TImageControl, or TCalendar.

See Also