RibbonPanelItem control

A RibbonPanelItem control defines a panel in the RibbonBar control. For more about the panel, see the section called “Introduction to RibbonBar items” in Users Guide.

The RibbonPanelItem control is the child object of the RibbonCategoryItem control (RibbonBar > Category > Panel > ...). For the hierarchical structure of the ribbon controls and how to get and set them, refer to the section called “Accessing the RibbonBar items in the hierarchy” in Users Guide.

Events

This control has no events or user events.

Properties

RibbonPanelItem property

Datatype

Description

ClassDefinition

PowerObject

An object of type PowerObject containing information about the class definition of the object or control.

Enabled

Boolean

Specifies whether the control is enabled (can be clicked).

ItemHandle

Long

Identifies the handle associated with the item.

PictureName

String

Specifies the file name of the picture.

The picture for a ribbon panel will be shown when the panel is collapsed (a panel is collapsed automatically when the window width becomes too small to display the panel). See the section called “Introduction to RibbonBar items” in Users Guide for more.

RightToLeft

Boolean

Unsupported.

Tag

String

Specifies the tag value assigned to the control.

Text

String

Specifies the text that displays in the control.

Visible

Boolean

Specifies whether the control is visible. Values are:

TRUE -- Control is visible.

FALSE -- Control is not visible.


Functions

RibbonPanelItem function

Datatype returned

Description

ClassName

String

Returns the name assigned to the control.

GetContextService

Integer

Creates a reference to a context-specific instance of the specified service.

GetParent

PowerObject

Returns a reference to the name of the parent object.

PostEvent

Integer

Adds the specified event to the end of the event queue for the specified object

TriggerEvent

Integer

Triggers a specified event in the control and executes the script for the event.

TypeOf

Object

Returns the type of the control.