Skip to content

pbStyleDisabled - cCJStatusBarPane

pbStyleDisabled determines if a statusbar pane's appearance will be disabled

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

Syntax

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

Description

pbStyleDisabled determines if a statusbar pane's appearance will be disabled. When true both the text (psText) and image (psImage) will appear disabled. Disabled text will either by "grayed out" or blank, depending on the cCJStatusBar's pbDrawDisabledText property.

The default is false (the pane is enabled).

Sample

This sample could be used to see how a pane's image and text appears when disabled and enabled. Note that the OnClick and OnDblClick events are sent to disabled panes.

Object oStatusPane3 is a cCJStatusBarPane
    Set psImage to "ActionSave.ico"
    Set psText to "Enabled"

    Procedure OnClick
        Boolean bDisabled
        Get pbStyleDisabled to bDisabled 
        Move (not(bDisabled)) to bDisabled
        Set pbStyleDisabled to bDisabled
        Set psText to (If(bDisabled,"Disabled","Enabled"))
    End_Procedure

End_Object