Skip to content

Add Method

Description

Adds a CommandBar to the context menus collection.

Syntax

Public Function Add( _
    ByVal [Id](#) As Long, _
    ByVal [Caption](#) As String _
) As [CommandBar](XtremeCommandBars~CommandBar.md)

Parameters

  • Id: Id of the context menu.
  • Caption: Caption of the context menu.

Return Type

Pointer to the CommandBar used for the context menu.

Remarks

Context menus are used for actions such as right-clicking on a workspace, tab button, button, etc.

Context menus are displayed in the "Menu" customization dialog. This is where you will see the Caption and Id used for the menus. Users can also customize these menus.

Context Menu Example

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.