vcl-dxnavbar-dot-tdxcustomnavbar-e9418a98.md
Specifies if all Navigation Bar controls in the application automatically update their appearance from application-wide skin and palette settings.
class property DefaultUseGlobalSkin: TdxDefaultBoolean read; write;
| Type | Description |
|---|---|
| TdxDefaultBoolean | bDefaultThe cxDefaultUseGlobalSkin global constant specifies if supported Navigation Bar Views automatically import global skin and palette settings and use them instead of corresponding View-specific settings.bTrueAll supported Navigation Bar Views automatically import global skin and palette settings defined using a TdxSkinController or the Project Settings dialog.bFalseSupported Navigation Bar Views use individual skin settings. |
A supported Navigation Bar View 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.
Only the following Navigation Bar Views support skins:
Note
All other Navigation bar Views rely on their own draw routines.
If one of the supported Navigation Bar Views is selected using the ViewStyle property, the TdxNavBar control uses global skin and palette settings.
You can expand the ViewStyle node and use the SkinName property to select an individual skin for the TdxNavBar control. If a vector skin is selected, it uses the color palette defined at the global level.
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.
Open the Project Source to Edit the Main Function
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.
#include <vcl.h>
#include "dxBar.hpp" // Declares the TdxBarManager::DefaultUseGlobalSkin class property
#include "dxRibbon.hpp" // Declares the TdxCustomRibbon::DefaultUseGlobalSkin class property
#include "dxStatusBar.hpp" // Declares the TdxCustomStatusBar::DefaultUseGlobalSkin class property
#include "dxLayoutControl.hpp" // Declares the TdxCustomLayoutControl::DefaultUseGlobalSkin class property
#include "dxNavBar.hpp" // Declares the TdxCustomNavBar::DefaultUseGlobalSkin class property
#pragma hdrstop
#include <tchar.h>
//---------------------------------------------------------------------------
USEFORM("Unit1.cpp", Form1);
//---------------------------------------------------------------------------
int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
{
TdxBarManager::DefaultUseGlobalSkin = bFalse;
TdxCustomRibbon::DefaultUseGlobalSkin = bFalse;
TdxCustomStatusBar::DefaultUseGlobalSkin = bFalse;
TdxCustomLayoutControl::DefaultUseGlobalSkin = bFalse;
TdxCustomNavBar::DefaultUseGlobalSkin = bFalse;
Application->Initialize();
Application->MainFormOnTaskBar = true;
Application->CreateForm(__classid(TMyForm), &MyForm);
Application->Run();
}
// ...
TdxBarManager.DefaultUseGlobalSkinSpecifies if all Bar Manager components in the application automatically update their appearance from application-wide skin and palette settings.TdxCustomRibbon.DefaultUseGlobalSkinSpecifies if all Ribbon controls in the application automatically update their appearance from application-wide skin and palette settings.TdxCustomStatusBar.DefaultUseGlobalSkinSpecifies if all status bar controls in the application automatically update their appearance from application-wide skin and palette settings.TdxCustomLayoutControl.DefaultUseGlobalSkinSpecifies if all Layout controls in the application automatically update their appearance from application-wide skin and palette settings.
The DefaultUseGlobalSkin property’s default value is bDefault.
The default property value indicates that the cxDefaultUseGlobalSkin global constant specifies if Navigation Bar controls automatically import global skin and palette settings.
See Also