IRibbonPanel.Visible

Syntax

Visible: Boolean;

Description

The Visible property determines whether the panel is visible.

Comments

Available values:

Example

Executing the example requires a form with components:

NOTE. When creating a component, a resource selection dialog box opens. Select the Resources empty object for the component, which will store graphic resources of ribbon elements.

Form ribbon structure in the ribbon editor:

After executing the operations, the ribbon editor displays the following ribbon structure:

After components are added, the form looks as follows:

Add a link to the Forms system assembly.

The example is a handler of the OnClick event for the component named Button1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    
If (RibbonPanel2.Visible = TrueThen
        RibbonPanel2.Visible := 
False;
    
Else
        RibbonPanel2.Visible := 
True;
    
End If;
End Sub Button1OnClick;

After executing the example, clicking the Button1 button hides the second panel on the ribbon:

The second click on the Button1 button displays the second panel on the ribbon.

See also:

IRibbonPanel