Skip to content

Class: cCJDesignerMenu

Properties | Events | Methods | Index of Classes

Used to add menu items to the customize menus dialog.

Hierarchy

Library

Windows Application Class Library

Package

cCJCommandBarSystem.pkg

Description

When command bar system customization is allowed (pbEnableCustomization), a user may customize their menu system by right-clicking on a menubar or toolbar and selecting the customize option. This will invoke a customize dialog which can be used to create new toolbars and to add new menus to a toolbar or menu. The "Commands" tab page in this dialog will contain a list of designer menu items that can be added to your menus. These designer menu items are placed in the customize dialog using one of two methods:

Adding menu items to the cCJDesignerMenu menu provides a way to add items to the customize dialog without actually adding them to the initial visual menu layout.

Object oCommandBarSystem is a cCJCommandBarSystem

    Object oMenuBar is a cCJMenuBar
        :    
    End_Object

    Object oFileToolBar is a cCJToolbar
        :    
    End_Object

    Object oEditToolBar is a cCJToolbar
        :
    End_Object

    Object oStatusBar is a cCJStatusBar
        :
    End_Object

    Object oDesignerMenu is a cCJDesignerMenu

        // add these menu item objects to the designer menu so they will appear
        // in the customize dialog

        Object oFindFirstTool is a cCJFindFirstMenuItem
        End_Object

        Object oFindPreviousTool is a cCJFindPreviousMenuItem
        End_Object

        Object oFindMenuTool is a cCJFindMenuItem
        End_Object

        Object oFindNextTool is a cCJFindNextMenuItem
        End_Object

        Object oFindLastTool is a cCJFindLastMenuItem
        End_Object

        Object oPromptToolItem is a cCJPromptMenuItem
        End_Object

    End_Object

End_Object 

Using Menus, Toolbars and Statusbars

See Also