Skip to content

Class: cCJTabToolBar

Properties | Events | Methods | Index of Classes

Used to create a tab-toolbar in a commandbar system

Hierarchy

cObject > DfComAutomationObject > cComAutomationObject > cCJComTabToolBar > cCJTabToolBar

Show full hierarchy and direct subclasses

Library: Windows Application Class Library

Package: cCJCommandBarSystem.pkg

Mixins: cCJCommandBarMixin

Description

cCJTabToolBar is used to create a tab-toolbar in a commandbar system. A tab-toolbar is a toolbar that is split into multiple tab pages, where each page contains standard toolbar/menu item objects. The cCJTabToolbar contains a number of cCJTabControlItem objects. These are the tab-pages. Each of these tab-item objects will contain cCJMenuItem objects. Each tab-item object has a label (psCategory). Selecting the label will bring the appropriate tab-page forward.

If the pbAllowReorder property is set true, the user may reorder the tab pages via mouse drag.

Col 1 Col 2
Note: This class is not visually modeled in the Studio's visual designer and its use should be considered somewhat experimental. It was created provide an example of how additional classes could be created that take advantage of some of the extra Codejock class features.

Using Tab-Toolbars

Tab-toolbars can be used in place of standard toolbar. A single tab-toolbar can replace multiple standard toolbars by placing the items in each standard toolbar in a cCJTabControlItem object.

This samples shows how three standard toolbars (Finding, DEO operations and Editing) could be added as a single tab-toolbar with three tab-item objects. This would be placed inside of a cCJCommandBarSystem object.

Object oTabToolBar is a cCJTabToolBar

    Set psTitle to "Tab-toolbar" 
    Set pbEnableDocking to False
    Set pbGripper to False
    Set pbAllowReorder to True
    Set peStretched to stStretch

    Object oFindTab is a cCJTabControlItem

        Set psCategory to "Finding"

        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
            Set pbControlBeginGroup to True
        End_Object

    End_Object

    Object oDEOTab is a cCJTabControlItem

        Set psCategory to "Data Entry"

        Object oClearToolItem is a cCJClearMenuItem
            Set peControlStyle to xtpButtonIconAndCaption
        End_Object

        Object oClearAllToolItem2 is a cCJClearAllMenuItem
            Set peControlStyle to xtpButtonIconAndCaption
        End_Object

        Object oSaveToolItem is a cCJSaveMenuItem
            Set peControlStyle to xtpButtonIconAndCaption
            Set pbControlBeginGroup to True
        End_Object

        Object oDeleteToolItem is a cCJDeleteMenuItem
            Set peControlStyle to xtpButtonIconAndCaption
        End_Object

    End_Object

    Object oEditTab is a cCJTabControlItem
        Set psCategory to "Edit"

        Object oCutToolbarItem is a cCJCutMenuItem
        End_Object

        Object oCopyToolbarItem is a cCJCopyMenuItem
        End_Object

        Object oPasteToolbarItem is a cCJPasteMenuItem
        End_Object

        Object oDeleteEditToolbarItem is a cCJDeleteEditMenuItem
            Set pbControlBeginGroup to True
        End_Object

    End_Object

End_Object