PanelText

Applies to

Menu objects

Description

Specifies the text to be displayed as the panel name in the category. The menu items are divided into different panels according to the menu separator line. You can specify the name of each panel.

To set the name of each panel, you only need to set the PanelText property of the first menu item in each panel.

If not specified, the name of the first menu item in each panel is used as the panel name by default.

Data type

String

Usage

In a painter

To specify the panel name:

  1. In the Menu painter, expand to the 2nd-level menu item in the treeview, select the first item within the 2nd-level menu or the first 2nd-level menu item after the separator line.

    The PanelText property (as well as PanelImage) need to be configured only for the first menu item in the panel, that is, the first 2nd-level menu item and the first 2nd-level menu item after the separator line.

  2. Enter the text in the PanelText text box in the RibbonView tab page.

In scripts

By default, the value of the panel text is the name of the first menu item in each panel, as shown below:


This statement changes the name of the first panel from "New Project" to "Project" and changes the name of the third panel from "Open Workspace..." to "Workspace":

m_newproject.PanelText = "Project"  //m_newproject is the first menu item in the first panel
m_openworkspace.PanelText = "Workspace"  //m_openworkspace is the first menu item in the third panel