Skip to main content
A newer version of this page is available.

TcxLookAndFeel.GetAvailablePainter(TdxThemedObjectTypes) Method

Returns the painter instance that can draw a specific UI element according to the active look & feel settings.

Declaration

function GetAvailablePainter(ANeededThemedObjectTypes: TdxThemedObjectTypes = []): TcxCustomLookAndFeelPainter; overload; virtual;

Parameters

Name Type
ANeededThemedObjectTypes TdxThemedObjectTypes

Returns

Type
TcxCustomLookAndFeelPainter

Remarks

The first overloaded GetAvailablePainter function variant returns the native style painter if it can draw a UI element whose type is passed as the ANeededThemedObjectType parameter and the NativeStyle property is set to True. Otherwise, the function returns the active skin or basic look & feel painter.

The second overloaded GetAvailablePainter function works similarly to the first overloaded variant but accepts a set of UI element types. The second variant returns a painter only if it can draw all specified UI element types.

See Also