Skip to main content
All docs
V25.2
  • TcxCustomLookAndFeelController.ShowFormShadow Property

    Specifies if a skinned application form casts a shadow.

    Declaration

    property ShowFormShadow: TdxDefaultBoolean read; write; default dxDefaultSkinShowFormShadow;

    Property Value

    Type Default Description
    TdxDefaultBoolean dxDefaultSkinShowFormShadow
    bDefault
    Shadows are enabled for skinned application forms. A form displays no shadows if its BorderStyle property is set to bsNone.
    bTrue
    Shadows are explicitly enabled for all skinned application forms.
    bFalse

    Shadows are explicitly disabled for all skinned application forms.

    Note

    Forms still display shadows drawn by the Desktop Window Manger (DWN) under Microsoft Windows 11.

    Remarks

    Any DevExpress form (a TdxCustomForm or TdxForm class descendant instance) can also draw a nonfunctional underlying form to imitate a shadow if the active skin draws form borders with a width that does not exceed 2 pixels.

    VCL Skins Library: A Simple Form with a Shadow

    Set the ShowFormShadow property to bTrue or bFalse to enable or disable the form shadow effect explicitly at the global level.

    Individual Form Shadow Visibility

    TdxSkinForm.ShowFormShadow and TdxCustomRibbonForm.ShowFormShadow properties allow you to override the global form shadow visibility setting at the level of individual forms.

    Limitations and Considerations

    • The ShowFormShadow property maps to the dxSkinShowFormShadow global variable. All skin controller instances share the same ShowFormShadow property value.
    • We recommend that you use only one TdxSkinController instance in a project. Alternatively, you can use Project Settings to configure global skin and palette options.
    • If shadows are explicitly disabled at the DevExpress Skins engine level, the Desktop Window Manager (DWN) still draws form shadows under Microsoft Windows 11.

    Default Value

    The ShowFormShadow property’s default value is a dxDefaultSkinShowFormShadow global constant.

    See Also