|
|
|
Ribbon tabs control the display and order of ribbon panels on the ribbon. You add ribbon tabs to a workspace to control which ribbon tabs are displayed on the ribbon.
Click the Play arrow below the following image to start the animation.
The following animation shows how to create a ribbon tab, add ribbon panels to a ribbon tab, and control the display of a ribbon tab on the ribbon through a workspace.
Ribbon tabs do not contain any commands or controls like a ribbon panel does; instead, they manage the display of ribbon panels on the ribbon. Once a ribbon tab is created, you can then add references to any of the ribbon panels from the Ribbon Panels node in the Customizations In <file name> pane to the ribbon tab. References to a ribbon panels can be created by using copy and paste, or by dragging a ribbon panel from the Ribbon Panels node onto the ribbon tab.
After references to ribbon panels are added to a ribbon tab, you can change to order in which the ribbon panels appear by dragging them up or down under the ribbon tab’s node in the Workspace Contents pane. The initial display order is set by the order in which panels appear under the ribbon tab’s node in the Customizations In <file name> pane. New ribbon tabs are added automatically to all workspaces, just like new toolbars and menus are. If you do not want the ribbon tab on the ribbon for a particular workspace, remove it from the workspace using the Workspace Contents pane.
You use the Workspace Contents pane of the Customize User Interface Editor to add and remove ribbon tabs from the ribbon, which is controlled by the current workspace. Once a ribbon tab has been added to a workspace, you can control the order in which the tab is displayed on the ribbon by expanding the Ribbon Tabs node under the Workspace Contents pane. Drag the ribbon tab up or down under the Ribbon Tabs node on the Workspace Contents pane to change the display order.
A ribbon panel is displayed by default; you can keep its association to a specific ribbon tab, but turn it off. Select the ribbon panel under the ribbon tab in the Workspace Contents pane. You can also control a ribbon panel’s collapsing style and orientation from the Workspace Contents pane.
The following table describes the properties for the Home - 2D ribbon tab as they appear in the Properties pane.
Properties for the Home - 2D ribbon tab |
||
---|---|---|
Properties pane item |
Description |
Example |
Name |
Name of the tab; does not appear in the user interface. |
Home - 2D |
Display Text |
Title of the tab; displayed when the ribbon tab is assigned to a workspace and the Ribbon palette is displayed. |
Home |
Description |
Text used to describe the element; does not appear in the user interface. |
|
Aliases |
Specifies the aliases for the ribbon tab. Click the […] button to open the Aliases dialog box. Each alias in the CUI file should be unique and it is used to reference the ribbon tab programmatically. |
ID_TabHome |
Element ID |
Tag that uniquely identifies a panel. |
UIDU_1158 |
Image |
ID string of the small-image resource (16 × 16 bitmap). The string must include alphanumeric characters with no punctuation other than a hyphen (-) or an underscore (_). It can also be a user-defined bitmap. Click the […] button to open the Select Image File dialog box. | RCDATA_16_LINE |
-
To create a ribbon tab (Procedure)
-
To remove a ribbon tab (Procedure)
-
To add a ribbon panel to a ribbon tab (Procedure)
-
To remove a ribbon panel from a ribbon tab (Procedure)
-
To set the initial position of a ribbon panel on a ribbon tab (Procedure)