Skip to content

Class: cCJStatusbarMenuItem

Properties | Events | Methods | Index of Classes

A menu item which is used to toggle the visibility of the statusbar

Hierarchy

cObject > DfComAutomationObject > cComAutomationObject > cCJCommandBarAction > cCJAction > cCJMenuItem > cCJStatusbarMenuItem

Show full hierarchy and direct subclasses

Library: Windows Application Class Library

Package: cCJStandardMenuItemClasses.pkg

Description

cCJStatusbarMenuItem is a menu item class, which is used to toggle the visibility of the statusbar. When executed, OnExecute sends the Toggle_StatusBar message to the AppPanel object. Toggle_StatusBar hides the statusbar if it is visible and shows it if it is hidden. It does this be setting the cCJStatusBar property pbVisible.

This is a checkbox menu-item. If the statusbar is currently visible the item will be checked.

The AppPanel is identified by sending this message to the parent of the ClientArea object. If the ClientArea object is not defined, no message is sent. This class should only be used with cCJCommandBarSystem objects that are used as the main MDI commandbar system.

An object based on this class can be added to any popup menu, toolbar or context menu.

Object oWindowMenu is a cCJMDIWindowsMenuItem

    Set peControlType to xtpControlPopup      
    Set psCaption to "&Window"
    Set psToolTip to "Window"
    Set psDescription to "Display Current Views and set other display options."    

    // These are the static windows items. More will be created in onInitPopup 
    Object oDisplayOptionsMenu is a cCJMenuItem
        Set peControlType to xtpControlPopup          

        Set psCaption to "&Display Options"
        Set psToolTip to "Display Options"
        Set psDescription to "Set display options"

        Object oStatusbarMenu is a cCJStatusbarMenuItem
        End_Object

        Object oAutoArrangeIconsMenu is a cCJAutoArrangeIconsMenuItem
        End_Object

        Object oRestoreMenusMenu is a cCJRestoreMenusMenuItem
            Set pbControlBeginGroup to True
        End_Object
    End_Object

    :
End_Object

See Also

cCJMenuItem