Skip to main content
All docs
V25.1
  • TdxCustomLayoutControl.DefaultUseGlobalSkin Property

    Specifies if all Layout controls in the application automatically update their appearance from application-wide skin and palette settings.

    Declaration

    class property DefaultUseGlobalSkin: TdxDefaultBoolean read; write; default bDefault;

    Property Value

    Type Default Description
    TdxDefaultBoolean bDefault
    bDefault
    The cxDefaultUseGlobalSkin global constant specifies if Layout controls automatically import global skin and palette settings and use them instead of corresponding settings accessible through the LayoutLookAndFeel property.
    bTrue

    All Layout controls whose UseGlobalSkin property is set to bDefault automatically import global skin and palette settings defined using a TdxSkinController component or the Project Settings dialog.

    This option is useful if you need to ensure visual consistency of your application.

    bFalse

    All Layout controls whose UseGlobalSkin property is set to bDefault use their LayoutLookAndFeel property as appearance settings. Active skin and palette settings defined using a TdxSkinController component or the Project Settings dialog have no effect on these Layout controls.

    This option is useful if you need to apply individual appearance settings to Layout controls.

    Remarks

    A Layout control can have individual look & feel settings or synchronize (recommended) with the active skin and palette specified using a TdxSkinController component or the Project Settings dialog.

    You can set the DefaultUseGlobalSkin class property to bTrue or bFalse at application startup to explicitly enable or disable synchronization with global skin and palette settings for all Layout controls in the application. The UseGlobalSkin property allows you to override the DefaultUseGlobalSkin setting at the level of individual Layout controls.

    Code Example: Disable Default Global Skin Usage Flags at Startup

    The code example in this section changes the DefaultUseGlobalSkin class property value to bFalse in the initialization section of the main application unit for the following components: TdxBarManager, TdxRibbon, TdxStatusBar, TdxLayoutControl, and TdxNavBar.

    uses
      Forms,
      dxBar, // Declares the TdxBarManager.DefaultUseGlobalSkin class property
      dxRibbon, // Declares the TdxCustomRibbon.DefaultUseGlobalSkin class property
      dxStatusBar, // Declares the TdxCustomStatusBar.DefaultUseGlobalSkin class property
      dxLayoutControl, // Declares the TdxCustomLayoutControl.DefaultUseGlobalSkin class property
      dxNavBar, // Declares the TdxCustomNavBar.DefaultUseGlobalSkin class property
    // ...
    begin
      TdxBarManager.DefaultUseGlobalSkin := bFalse;
      TdxCustomRibbon.DefaultUseGlobalSkin := bFalse;
      TdxCustomStatusBar.DefaultUseGlobalSkin := bFalse;
      TdxCustomLayoutControl.DefaultUseGlobalSkin := bFalse;
      TdxCustomNavBar.DefaultUseGlobalSkin := bFalse;
      Application.Initialize;
      Application.MainFormOnTaskBar := True;
      Application.CreateForm(TMyForm, MyForm);
      Application.Run;
    end.
    

    Default Skin Usage Flags in Other Components

    TdxBarManager.DefaultUseGlobalSkin
    Specifies if all Bar Manager components in the application automatically update their appearance from application-wide skin and palette settings.
    TdxCustomRibbon.DefaultUseGlobalSkin
    Specifies if all Ribbon controls in the application automatically update their appearance from application-wide skin and palette settings.
    TdxCustomStatusBar.DefaultUseGlobalSkin
    Specifies if all status bar controls in the application automatically update their appearance from application-wide skin and palette settings.
    TdxCustomNavBar.DefaultUseGlobalSkin
    Specifies if all Navigation Bar controls in the application automatically update their appearance from application-wide skin and palette settings.

    Default Value

    The DefaultUseGlobalSkin property’s default value is bDefault.

    The default property value indicates that the cxDefaultUseGlobalSkin global constant specifies if Layout controls automatically import global skin and palette settings.

    See Also