Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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:

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