Back to Devexpress

TdxSkinControlEvent Type

vcl-dxskinsform-3af52654.md

latest3.3 KB
Original Source

TdxSkinControlEvent Type

The procedural type for standard control skinning events.

Declaration

delphi
TdxSkinControlEvent = procedure(Sender: TObject; AControl: TWinControl; var UseSkin: Boolean) of object;

Parameters

NameTypeDescription
SenderTObject

Provides access to the TdxSkinController component that raised the control skinning event.

Cast the Sender parameter value to the TdxSkinController class to access all public API members.

| | AControl | TWinControl |

The standard VCL control that is about to be skinned.

You can use the AControl parameter to identify the target control. To access all public AI members of the target control, you need to cast the parameter value to the corresponding TWinControl class descendant.

Tip

You can call the AControl.ClassType function to identify the actual class of the target control.

| | UseSkin | Boolean |

Specifies if the TdxSkinController component accessible through the Sender parameter applies the active skin to the target control (AControl).

Assign False to the UseSkin parameter to prevent the skin controller from applying the active skin to the currently processed standard control.

Note

The initial UseSkin parameter value equals the skin controller’s UseSkins property value.

|

Remarks

The TdxSkinController component can apply skins to standard forms and a number of standard VCL controls in addition to DevExpress forms and controls.

Supported Standard VCL Controls

Event Occurrence

A control skinning event occurs once per every instance of these controls at application startup or when the active skin changes. You can handle this event to prevent the TdxSkinController component from applying the active skin to one of these controls.

Direct TdxSkinControlEvent Type Reference

The TdxSkinController.OnSkinControl event references the TdxSkinControlEvent procedural type.

See Also

TdxSkinFormEvent Procedural Type

dxSkinsForm Unit