Skip to content

ComCreateGroup - cCJTabWorkspace

Exposes the CreateGroup Codejock COM method in the DataFlex proxy class

Type: Procedure

Parameters

Parameter Type Description
llItem Variant Please see the "Codejock Xtreme CommandBars" documentation for more information.
llHoriz Boolean Please see the "Codejock Xtreme CommandBars" documentation for more information.

Syntax

Procedure ComCreateGroup Variant llItem Boolean llHoriz

Call Example

Send ComCreateGroup llItem llHoriz

Description

This exposes the CreateGroup Codejock COM method in the DataFlex proxy class.

This class provides a standard COM import wrapper for Codejock TabWorkspace class. All methods, properties and events are the standard COM interfaces for this class. In DataFlex each Codejock object or collection name is prefixed with "cCJ", each COM Property or method name is prefixed with "Com", and each event name is prefixed with "OnCom".

For an overview on the DataFlex implementation of the commandbar system, refer to Using Menus, Toolbars and Statusbars.

For more information about the Codejock COM commandbar system interface, refer to Codejock's Xtreme CommandBar documentation (class: TabWorkspace, method: CreateGroup)

Sample

On_Key (Key_Ctrl+Key_Alt+Key_G) Send CreateNewGroup

Procedure CreateNewGroup
    Handle hoTabWorkspace
    Variant vTabWorkspace vCurrentTab
    Integer iItems

    Get Create (RefClass(cCJTabWorkspace)) to hoTabWorkspace
    Get ComShowTabWorkspace of ghoCommandBars True to vTabWorkspace
    Set pvComObject of hoTabWorkspace to vTabWorkspace

    Get ComItemCount of hoTabWorkspace to iItems
    If (iItems > 1) Begin
        Get ComSelected of hoTabWorkspace to vCurrentTab
        Send ComCreateGroup of hoTabWorkspace vCurrentTab True                   
    End

    Send Destroy of hoTabWorkspace
End_Procedure