[Overview][Resource strings][Constants][Types][Classes][Procedures and functions] Reference for unit 'fpGUI' (#fpgui)

TWidget.Style

Sets or Gets the widget's GUI style

Declaration

Source position: widget.inc line 268

public property TWidget.Style: TStyle
  read GetStyle
  write SetStyle;

Description

Sets or Gets the widget's GUI style. The ownership of the style object is not transferred.

If no style is set, the widget uses the application's style, TApplication.DefaultStyle instead.

Warning: This function is particularly useful for demonstration purposes, where you want to show fpGUI's styling capabilities. Real applications should avoid it and use one consistent GUI style instead.

See also

TApplication.DefaultStyle

  

TStyle

  

The TStyle class is an abstract base class that encapsulates the look and feel of a GUI.