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

TdxSkinController.OnSkinForm Event

Enables you to specify skins to be applied to a form and its controls.

Declaration

property OnSkinForm: TdxSkinFormEvent read; write;

Remarks

This event is raised only once before the form passed as the AForm parameter is shown.

The OnSkinForm event allows you to:

  • Specify the skin to be applied to the form by passing its name via the ASkinName parameter.

  • Enable or disable form skinning by passing True or False via the UseSkin parameter.

By default, the ASkinName and UseSkin parameter values are equal to the skin controller’s SkinName and UseSkins property values.

To reapply skins based on the OnSkinForm event handler’s logic, call the Refresh method, which fires this event.

To specify whether the specified skin is applied to specific controls on a form, handle the OnSkinControl event.

Note

Skin options specified within the OnSkinForm event handler apply only to a form and its TPanel, TButton, TCheckBox, TDBCheckBox, and TRadioButton controls. These options are not applied to skinnable DevExpress controls, which are skinned as specified by the SkinName property of the skin controller, or look and feel controller.

See Also