vcl-dxbar-dot-tdxbar-ed91e57a.md
Specifies whether the current toolbar is visible.
property Visible: Boolean read; write;
| Type |
|---|
| Boolean |
Use the Visible property to hide or display the current toolbar. If this property is set to True , the Control property returns the visible bar control. Otherwise, the current toolbar is not displayed and the Control property returns nil.
The following code hides a form’s main toolbar:
if GetBarManagerByForm(Form1) <> nil then
with GetBarManagerByForm(Form1) do
if MainMenuBar <> nil then
MainMenuBar.Visible := False;
TdxBarManager * BarManager;
BarManager = GetBarManagerByForm(Form1);
if (BarManager != NULL)
if (BarManager->MainMenuBar != NULL)
BarManager->MainMenuBar->Visible = false;
See Also