TdxSkinController.OnSkinForm Event
Allows you to apply different skins to forms and standard VCL controls.
#Declaration
property OnSkinForm: TdxSkinFormEvent read; write;
#Remarks
You can handle OnSkinForm
and OnSkinControl events to apply different skins to individual standard forms and the following VCL controls: TPanel, TButton, TCheckBox, TDBCheckBox, and TRadioButton.
To update skin-related settings modified within an OnSkinForm
event handler, call the Refresh procedure.
#Global Ignored Form List
The TdxSkinIgnoredFormList class maintains a global ignore list of the DevExpress Skin Engine. The ignore list is prepopulated with a number of form classes shipped with popular third-party VCL components.
You can call TdxSkinIgnoredFormList.Add, TdxSkinIgnoredFormList.Remove, TdxSkinIgnoredFormList.Clear, and other methods to manage the list of ignored form classes.
#Event Occurrence
The OnSkinForm
event occurs:
- Once for every skinned form when it is displayed for the first time.
- Every time for every skinned form when a global look & feel setting is changed.
#Event Parameters
You can use the AForm
parameter to access the currently processed form. The ASkinName
parameter allows you to apply a specific skin to the form.
Refer to the TdxSkinFormEvent procedural type description for detailed information on parameters accessible within an OnSkinForm
event handler.
#Limitations
All skin setting changes made within an OnSkinForm
event handler affect only a form and all TPanel, TButton, TCheckBox, TDBCheckBox, and TRadioButton controls on this form.
Only SkinName, SkinPaletteName, and other global skin-related properties affect DevExpress controls.