Skip to main content

TdxBar.Visible Property

Specifies whether the current toolbar is visible.

Declaration

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:

if GetBarManagerByForm(Form1) <> nil then
  with GetBarManagerByForm(Form1) do
    if MainMenuBar <> nil then
MainMenuBar.Visible := False;
See Also