RibbonBar control
A RibbonBar control enables you to create ribbons that organize user
commands into logical groups. A ribbon is a modern way of organizing user
commands in user interfaces. A ribbon can replace the traditional menu bar
and toolbars with tabbed pages (called Category); and each Category splits
into Panels that contain LargeButton (with or without RibbonMenu),
SmallButton (with or without RibbonMenu), CheckBox, ComboBox, and Spin
(currently unsupported). For more about these ribbon items, see the section called “Introduction to RibbonBar items” in Users Guide.
The RibbonBar control is the container and the parent object for the
ribbon item controls. 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.
For how to create a RibbonBar control and adding ribbon items
(Category, Panel, GroupBox, Button, Menu etc) using a tool, refer to
the section called “Creating a RibbonBar using RibbonBar Builder” in Users Guide.
For how to create a RibbonBar control and adding/removing ribbon
items using PowerScript functions (like InsertCategory/DeleteCategory,
InsertPanel/DeletePanel, InsertLargeButton/DeleteLargeButton etc.), refer
to the code examples provided in the RibbonBar
demo application and the documentation in Tutorial: How to
Replace an Application Menu with a RibbonBar in Users Guide.
Note
This control cannot be referenced in .NET Web Service or .NET
Assembly components, otherwise the component will fail to be
deployed.
Properties
|
RibbonBar property |
Datatype |
Description |
|---|---|---|
|
String |
A description of the control and/or its purpose for |
|
|
String |
A label that briefly describes the control, such as |
|
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the |
|
|
Boolean |
Specifies whether the RibbonBar control TRUE FALSE — Height is |
|
|
Boolean |
Specifies whether PowerBuilder moves the control to TRUE — Control moved to top. FALSE |
|
|
Integer |
Specifies the theme of the RibbonBar control. If |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
Boolean |
Specifies whether PowerBuilder puts the control TRUE — FALSE — When the control is clicked, the |
|
|
String |
Specifies the name of the stock icon or the file When the user drags the control, the |
|
|
Boolean |
Specifies whether the control is enabled (can be TRUE — Control is FALSE — Control is not |
|
|
String |
Specifies the name of the typeface in which the |
|
|
FontCharSet (enumerated) |
Specifies the font character set used for the text |
|
|
FontFamily (enumerated) |
Specifies the font family (type style) used for the AnyFont! Decorative! Modern! Roman! Script! Swiss! |
|
|
FontPitch (enumerated) |
Specifies the pitch (spacing) of the font used for Default! Fixed! Variable! |
|
|
Integer |
Specifies the height of the control, in |
|
|
Boolean |
Specifies the text of all ribbon panels to be |
|
|
Boolean |
Specifies the tab header area to be The tab header area If |
|
|
Boolean |
Specifies whether the text in the control is TRUE — Text is FALSE — Text is not italic. |
|
|
String |
Specifies the name of the stock pointer or the file |
|
|
RightToLeft |
Boolean |
Unsupported. |
|
Integer |
This property is currently unsupported for the RibbonBar control. The RibbonBar control cannot receive focus when the user tabs among controls within a window. |
|
|
String |
Specifies the tag value assigned to the |
|
|
Integer |
Specifies the size of the text in the control, in |
|
|
Integer |
Specifies the transparency of the control. Value is |
|
|
Boolean |
Specifies whether the text in the control is TRUE — Text is FALSE — Text is not |
|
|
Boolean |
Specifies whether the control is visible. Values TRUE — Control is visible. FALSE |
|
|
Integer |
Specifies the stroke weight of the text in the |
|
|
Integer |
Specifies the width of the control, in PowerBuilder |
|
|
Integer |
Specifies the X position (the distance from the |
|
|
Integer |
Specifies the Y position (the distance from the top |
Events
|
RibbonBar event |
Occurs |
|---|---|
|
Occurs when the category is collapsed. When the |
|
|
Occurs when the category is expanded. When the |
|
|
After the selection changes to another category and |
|
|
When another category is about to be |
|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
|
|
When a dragged control is dropped on the |
|
|
When a dragged control enters the |
|
|
When a dragged control leaves the |
|
|
When a dragged control is within the |
|
|
When the user presses the F1 key or drags the |
|
|
When an item changes from highlights to the other |
|
|
When a Windows message occurs that is not a |
|
|
When the right mouse button is pressed on the |
|
|
When the user or a script opens or resizes a |
Functions
|
RibbonBar function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the |
|
|
Integer |
Removes a category from the RibbonBar |
|
|
Integer |
Removes a check box from the panel or group of the |
|
|
Integer |
Removes a combo box from the panel or group of the |
|
|
Integer |
Removes a group from the panel of the RibbonBar |
|
|
Integer |
Removes an item from the RibbonBar |
|
|
Integer |
Removes a large button from the panel of the |
|
|
Integer |
Removes a panel from the category of the RibbonBar |
|
|
Integer |
Removes a small button from the panel or group of |
|
|
Integer |
Removes a tab button from the RibbonBar |
|
|
Integer |
Starts or ends dragging of the |
|
|
String |
Saves the ribbon bar to a JSON |
|
|
String |
Saves the ribbon bar to an XML |
|
|
Integer |
Saves the ribbon bar to a JSON file. |
|
|
Integer |
Saves the ribbon bar to an XML file. |
|
|
Integer |
Gets the active category in the RibbonBar |
|
|
Integer |
Gets the application button in the RibbonBar |
|
|
Integer |
Gets the height of the RibbonBar control which is |
|
|
Integer |
Gets the category in the RibbonBar |
|
|
Integer |
Gets the category according to its index in the |
|
|
Long |
Determines the total number of categories in the |
|
|
Long |
Gets the index of the category in the RibbonBar |
|
|
Integer |
Gets the check box in the RibbonBar |
|
|
Integer |
Gets the child item according to its index in the |
|
|
Long |
Determines the total number of items in a parent |
|
|
Integer |
Gets the combo box in the RibbonBar |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
Integer |
Gets the group in the RibbonBar |
|
|
Integer |
Gets an item according to the |
|
|
Integer |
Gets an item according to the tag. |
|
|
Integer |
Gets the parent of the item. |
|
|
Integer |
Gets the large button in the RibbonBar |
|
|
Integer |
Gets the menu associated with the button in the |
|
|
Integer |
Gets the panel in the category of the RibbonBar |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Integer |
Gets the small button in the RibbonBar |
|
|
Long |
Gets the tab button in the RibbonBar |
|
|
Integer |
Gets the tab button according to its index in the |
|
|
Long |
Determines the total number of tab buttons in the |
|
|
Integer |
Makes the control invisible. |
|
|
Integer |
Loads the ribbon bar from a JSON |
|
|
Integer |
Loads the ribbon bar from an XML |
|
|
Integer |
Loads the ribbon bar from a JSON |
|
|
Integer |
Loads the ribbon bar from an XML |
|
|
Long |
Inserts a category in the RibbonBar |
|
|
Long |
Inserts a category as the first item in the |
|
|
Long |
Inserts a category as the last item in the |
|
|
Long |
Inserts a check box in the panel or group of the |
|
|
Long |
Inserts a check box as the first item in the panel |
|
|
Long |
Inserts a check box as the last item in the panel |
|
|
Long |
Inserts a combo box in the panel or group of the |
|
|
Long |
Inserts a combo box as the first item in the panel |
|
|
Long |
Inserts a combo box as the last item in the panel |
|
|
Long |
Inserts a group in the panel of the RibbonBar |
|
|
Long |
Inserts a group as the first item in the |
|
|
Long |
Inserts a group as the last item in the |
|
|
Long |
Inserts a large button in the panel of the |
|
|
Long |
Inserts a large button as the first item in the |
|
|
Long |
Inserts a large button as the last item in the |
|
|
Long |
Inserts a panel in the category of the RibbonBar |
|
|
Long |
Inserts a panel as the first item in the category |
|
|
Long |
Inserts a panel as the last item in the category of |
|
|
Long |
Inserts a small button in the panel or group of the |
|
|
Long |
Inserts a small button as the first item in the |
|
|
Long |
Inserts a small button as the last item in the |
|
|
Long |
Inserts a tab button in the RibbonBar |
|
|
Long |
Inserts a tab button as the first item in the |
|
|
Long |
Inserts a tab button as the last item in the |
|
|
Boolean |
Gets whether the RibbonBar control is minimized or |
|
|
Integer |
Moves the control to a specified |
|
|
Integer |
Returns the distance of the pointer from the left |
|
|
Integer |
Returns the distance of the pointer from the top of |
|
|
Integer |
Adds the specified event to the end of the event |
|
|
Integer |
Prints the contents of the control. You can specify |
|
|
Integer |
Removes the application button from the RibbonBar |
|
|
Integer |
Changes the size of the control. |
|
|
Integer |
Sets the active category in the RibbonBar |
|
|
Integer |
Sets the active category according to its index in |
|
|
Integer |
Sets the application button for the RibbonBar |
|
|
Integer |
Sets the category for the RibbonBar |
|
|
Integer |
Sets the check box for the RibbonBar |
|
|
Integer |
Sets the combo box for the RibbonBar |
|
|
Integer |
Sets focus to the control. |
|
|
Integer |
Sets the group for the RibbonBar |
|
|
Integer |
Sets an item for the RibbonBar |
|
|
Integer |
Sets the large button for the RibbonBar |
|
|
Long |
Sets the RibbonBar control to be minimized. When the RibbonBar control is minimized, only the If the HideTabHeader property is |
|
|
Integer |
Sets the panel for the RibbonBar |
|
|
Integer |
Specifies the front-to-back position of the |
|
|
Integer |
Controls automatic redrawing of the |
|
|
Integer |
Sets the small button for the RibbonBar |
|
|
Integer |
Sets the tab button for the RibbonBar |
|
|
Integer |
Makes the control visible. |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the type of the control. |