Purpose
Creates a MapInfo Pro ribbon contextual tab group. You can issue this statement from the MapBasic window in MapInfo Pro.
Syntax
Create Ribbon
[ Window window_id ] Context Tab Group group_name
[ Index group_to_create_before ] CONTEXT_TAB_GROUP_CLAUSE
window_id is a window identifier.
group_name is the name of the new group. It is a mandatory parameter.
group_to_create_before specifies the position/index of the group before which the new group would be created.
CONTEXT_TAB_GROUP_CLAUSE, sets the caption, tool tip and other properties of the new tab.
Description
The Create Ribbon Context Tab statement creates a MapInfo Pro ribbon contextual tabs and groups and other controls if specified.
If the window_id is specified, the window must be a map, browser, layout, or redistricter, and the window must have a ribbon.
The group_name specifies the name of the new group. This is the variable name used in MapBasic scripts. It is a string expression and is case-sensitive. It must start with a letter or underscore and can contain numbers, letters, and underscores.
group_to_create_before is an optional parameter that specifies the position/index of the group before which the new group would be created. If this parameter is not specified or its value is more than the number of groups in the ribbon or its value is less than one, the new group is created at end position of the ribbon.
Create Ribbon
[ Window window_id ] Context Tab Group group_name
[ Index group_to_create_before ]
'CONTEXT_TAB_GROUP_CLAUSE
[ Caption caption ] [ Enable | Disable ] [ Hide | Show ]
[ Tooltip TOOTIP_CLAUSE ] [ Properties ( PROPERTIES_CLAUSE ) ]
- caption is the label/name of the group visible on the ribbon.
- Enable or Disable the group upon creation.
- Show or Hide the group upon creation.
- TOOLTIP_CLAUSE sets the value of the new group's tool tip.
- PROPERTIES_CLAUSE sets the properties of the group. See Ribbon Control Definitions for more details.
Example
Please see the Create Ribbon Sample Code.