Back to Devexpress

TdxBar.Visible Property

vcl-dxbar-dot-tdxbar-ed91e57a.md

latest1.3 KB
Original Source

TdxBar.Visible Property

Specifies whether the current toolbar is visible.

Declaration

delphi
property Visible: Boolean read; write;

Property Value

Type
Boolean

Remarks

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:

delphi
if GetBarManagerByForm(Form1) <> nil then
  with GetBarManagerByForm(Form1) do
    if MainMenuBar <> nil then
MainMenuBar.Visible := False;
cpp
TdxBarManager * BarManager;
BarManager = GetBarManagerByForm(Form1);
  if (BarManager != NULL)
    if (BarManager->MainMenuBar != NULL)
BarManager->MainMenuBar->Visible = false;

See Also

TdxBar.Hidden

How to Create a Toolbar and Position it on Screen

TdxBar Class

TdxBar Members

dxBar Unit