Skip to content

pbVisible - cCJStatusBarPane

Determines if the statusbar pane is visible

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean pbVisible
Access Type Syntax
Read Access: Get pbVisible to BooleanVariable
Write Access: Set pbVisible to BooleanVariable/Value

Description

pbVisible determines if the statusbar pane is visible. When true, the statusbar pane will be visible, when false it will be hidden. This can be set dynamically to make statusbar panes appear and disappear.

Default is true.

Sample

In this sample, the oHideViewPane is used to hide or show the view pane.

Object oStatusBar is a cCJStatusBar

    Object oStatusPane1 is a cCJStatusBarPane
        Set piId to sbpIDIdlePane
        Set pbStyleStretch to True
    End_Object

    Object oViewPane is a cCJStatusBarPane
        Delegate Set phoViewPane to Self
        Set pbStyleStretch to True
    End_Object

    Object oHideViewPane is a cCJStatusBarPane
        Set psText to "Hide View Pane"

        Procedure OnClick
            Boolean bVisible

            // toggle pbVisible of the view pane
            Get pbVisible of oViewPane to bVisible
            Set pbVisible of oViewPane to (not(bVisible))

            // change text of this pane to show what clicking will do
            Set psText to (If(bVisible,"Show View Pane","Hide View Pane"))

        End_Procedure

    End_Object

End_Object