TdxBarManager.DefaultUseGlobalSkin Property
Specifies if all Bar Manager components in the application automatically update their appearance from application-wide skin and palette settings.
Declaration
class property DefaultUseGlobalSkin: TdxDefaultBoolean read; write;
Property Value
| Type | Description |
|---|---|
| TdxDefaultBoolean |
|
Remarks
You can set the DefaultUseGlobalSkin property to bTrue or bFalse at application startup to explicitly enable or disable synchronization with global skin and palette settings for all toolbar UIs in the application.
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.
To open the main application unit of your project, you can use one of the following options:
- Select Project → View Source in the main menu of your RAD Studio IDE.
- Select the target project in the Projects Window and press Ctrl + V (alternatively, you can display the context menu and select the View Source option).
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
- 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.
- TdxCustomLayoutControl.DefaultUseGlobalSkin
- Specifies if all Layout 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.