PanelImage

Applies to

Menu objects

Description

Specifies the image to be displayed when the panel is collapsed (a panel is collapsed automatically when the window width becomes too small to display all of the items in the panel). It has the same effect as the PictureName property of the standard ribbon item control RibbonPanelItem.

If not specified, the system image will be used by default.

Data type

String

Usage

In a painter

To specify the panel image:

  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 PanelImage property (as well as PanelText) 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. Select the RibbonView tab page, and then input the file path or URL address of the image to the PanelImage text box, or click the ellipsis button after the PanelImage text box to select an image from the dialog box.

In scripts

This statement sets the image of the panel to icon1.ico:

m_newproject.PanelImage = "icon1.ico"