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 object cannot be referenced in the .NET Assembly component, otherwise the component will fail to be deployed.
RibbonBar property |
Datatype |
Description |
---|---|---|
String |
A description of the control and/or its purpose for use by accessibility tools such as readers for visually impaired users. |
|
String |
A label that briefly describes the control, such as the text in a button or the name of a menu item. |
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the control is. |
|
Boolean |
Specifies whether the RibbonBar control automatically adjusts its height. Values are: TRUE -- Height is automatically adjusted according to the content. The Height property (no matter specified in the painter or in the scripts) will be ignored. FALSE -- Height is determined by the Height property (specified in the painter or in the scripts). |
|
Boolean |
Specifies whether PowerBuilder moves the control to the top of the front-to-back order in the window. Values are: TRUE -- Control moved to top. FALSE -- Control not moved to top. |
|
Integer |
Specifies the theme of the RibbonBar control. If the application is set with a theme, then the theme selected for the application will take effect and this BuiltinTheme property will be ignored. |
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
Boolean |
Specifies whether PowerBuilder puts the control automatically into Drag mode. Values are: TRUE -- When the control is clicked, the control is automatically in Drag mode. FALSE -- When the control is clicked, the control is not automatically in Drag mode. You have to manually put the control into Drag mode by using the Drag function. |
|
String |
Specifies the name of the stock icon or the file containing the icon you want to display when the user drags the control (the ICO file). The default icon is a box the size of the control. When the user drags the control, the icon displays when the control is over an area in which the control can be dropped (a valid drop area). When the control is over an area that is not a valid drop area, the No-Drop icon displays. |
|
Boolean |
Specifies whether the control is enabled (can be selected). Values are: TRUE -- Control is enabled. FALSE -- Control is not enabled. |
|
String |
Specifies the name of the typeface in which the text of the control displays (for example, Helv or Courier). |
|
FontCharSet (enumerated) |
Specifies the font character set used for the text in the control. For a complete list of possible values, see the list of properties for the FontCharSet variable on the Enumerated tab page of the Browser. |
|
FontFamily (enumerated) |
Specifies the font family (type style) used for the text in the control. Values are: AnyFont! Decorative! Modern! Roman! Script! Swiss! |
|
FontPitch (enumerated) |
Specifies the pitch (spacing) of the font used for the text in the control. Values are: Default! Fixed! Variable! |
|
Integer |
Specifies the height of the control, in PowerBuilder units. |
|
Boolean |
Specifies the text of all ribbon panels to be invisible. (Default is FALSE.) |
|
Boolean |
Specifies the tab header area to be invisible.(Default is FALSE.) The tab header area includes the application button title, the category title, and the tab header on the same horizontal level. If RibbonBar is minimized (which means only the application button title, the category title, and the tab header are visible), this property cannot be set to TRUE. |
|
Boolean |
Specifies whether the text in the control is italic. Values are: TRUE -- Text is italic. FALSE -- Text is not italic. |
|
String |
Specifies the name of the stock pointer or the file containing the pointer used for the control. |
|
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 control. |
|
Integer |
Specifies the size of the text in the control, in points. For backward compatibility, the size is stored as a negative number; for example, 10-point text size is stored as -10. |
|
Integer |
Specifies the transparency of the control. Value is a percentage in the range 0 (opaque) to 100 (completely transparent). |
|
Boolean |
Specifies whether the text in the control is underlined. Values are: TRUE -- Text is underlined. FALSE -- Text is not underlined. |
|
Boolean |
Specifies whether the control is visible. Values are: TRUE -- Control is visible. FALSE -- Control is not visible. |
|
Integer |
Specifies the stroke weight of the text in the control; for example, 400 for normal or 700 for bold. |
|
Integer |
Specifies the width of the control, in PowerBuilder units. |
|
Integer |
Specifies the X position (the distance from the left edge of the window), in PowerBuilder units. |
|
Integer |
Specifies the Y position (the distance from the top of the window), in PowerBuilder units. |
RibbonBar event |
Occurs |
---|---|
Occurs when the category is collapsed. When the RibbonBar is minimized, the category will be expanded when the user clicks the category title, and will be collapsed when the user clicks the title again or clicks outside of the category. |
|
Occurs when the category is expanded. When the RibbonBar is minimized, the category will be expanded when the user clicks the category title. |
|
After the selection changes to another category and when the category is created and the initial selection is established. |
|
When another category is about to be selected. |
|
Immediately before the Open event occurs in the window. |
|
Immediately after the Close event occurs in the window. |
|
When a dragged control is dropped on the control |
|
When a dragged control enters the control |
|
When a dragged control leaves the control |
|
When a dragged control is within the control |
|
When the user presses the F1 key or drags the context help button (question mark) from the title bar to a menu item or control |
|
When an item changes from highlights to the other state. |
|
When a Windows message occurs that is not a PowerBuilder event |
|
When the right mouse button is pressed on the control |
|
When the user or a script opens or resizes a window. |
RibbonBar function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the control. |
|
Integer |
Removes a category from the RibbonBar control. |
|
Integer |
Removes a check box from the panel or group of the RibbonBar control. |
|
Integer |
Removes a combo box from the panel or group of the RibbonBar control. |
|
Integer |
Removes a group from the panel of the RibbonBar control. |
|
Integer |
Removes an item from the RibbonBar control. |
|
Integer |
Removes a large button from the panel of the RibbonBar control. |
|
Integer |
Removes a panel from the category of the RibbonBar control. |
|
Integer |
Removes a small button from the panel or group of the RibbonBar control. |
|
Integer |
Removes a tab button from the RibbonBar control. |
|
Integer |
Starts or ends dragging of the control. |
|
String |
Saves the ribbon bar to a JSON string. |
|
String |
Saves the ribbon bar to an XML string. |
|
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 control. |
|
Integer |
Gets the application button in the RibbonBar control. |
|
Integer |
Gets the height of the RibbonBar control which is automatically adjusted according to the content (when AutosizeHeight is enabled). |
|
Integer |
Gets the category in the RibbonBar control. |
|
Integer |
Gets the category according to its index in the RibbonBar control. |
|
Long |
Determines the total number of categories in the RibbonBar control. |
|
Long |
Gets the index of the category in the RibbonBar control. |
|
Integer |
Gets the check box in the RibbonBar control. |
|
Integer |
Gets the child item according to its index in the RibbonBar control. |
|
Long |
Determines the total number of items in a parent (Category, Panel, or Group) of the RiboonBar control. |
|
Integer |
Gets the combo box in the RibbonBar control. |
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
Integer |
Gets the group in the RibbonBar control. |
|
Integer |
Gets an item according to the handle. |
|
Integer |
Gets an item according to the tag. |
|
Integer |
Gets the parent of the item. |
|
Integer |
Gets the large button in the RibbonBar control. |
|
Integer |
Gets the menu associated with the button in the RibbonBar control. |
|
Integer |
Gets the panel in the category of the RibbonBar control. |
|
PowerObject |
Returns a reference to the name of the parent object. |
|
Integer |
Gets the small button in the RibbonBar control. |
|
Long |
Gets the tab button in the RibbonBar control. |
|
Integer |
Gets the tab button according to its index in the RibbonBar control. |
|
Long |
Determines the total number of tab buttons in the RibbonBar control. |
|
Integer |
Makes the control invisible. |
|
Integer |
Loads the ribbon bar from a JSON string. |
|
Integer |
Loads the ribbon bar from an XML string. |
|
Integer |
Loads the ribbon bar from a JSON file. |
|
Integer |
Loads the ribbon bar from an XML file. |
|
Long |
Inserts a category in the RibbonBar control. |
|
Long |
Inserts a category as the first item in the RibbonBar control. |
|
Long |
Inserts a category as the last item in the RibbonBar control. |
|
Long |
Inserts a check box in the panel or group of the RibbonBar control. |
|
Long |
Inserts a check box as the first item in the panel or group of the RibbonBar control. |
|
Long |
Inserts a check box as the last item in the panel or group of the RibbonBar control. |
|
Long |
Inserts a combo box in the panel or group of the RibbonBar control. |
|
Long |
Inserts a combo box as the first item in the panel or group of the RibbonBar control. |
|
Long |
Inserts a combo box as the last item in the panel or group of the RibbonBar control. |
|
Long |
Inserts a group in the panel of the RibbonBar control. |
|
Long |
Inserts a group as the first item in the panel. |
|
Long |
Inserts a group as the last item in the panel. |
|
Long |
Inserts a large button in the panel of the RibbonBar control. |
|
Long |
Inserts a large button as the first item in the panel of the RibbonBar control. |
|
Long |
Inserts a large button as the last item in the panel of the RibbonBar control. |
|
Long |
Inserts a panel in the category of the RibbonBar control. |
|
Long |
Inserts a panel as the first item in the category of the RibbonBar control. |
|
Long |
Inserts a panel as the last item in the category of the RibbonBar control. |
|
Long |
Inserts a small button in the panel or group of the RibbonBar control. |
|
Long |
Inserts a small button as the first item in the panel or group of the RibbonBar control. |
|
Long |
Inserts a small button as the last item in the panel or group of the RibbonBar control. |
|
Long |
Inserts a tab button in the RibbonBar control. |
|
Long |
Inserts a tab button as the first item in the RibbonBar control. |
|
Long |
Inserts a tab button as the last item in the RibbonBar control. |
|
Boolean |
Gets whether the RibbonBar control is minimized or not. |
|
Integer |
Moves the control to a specified location. |
|
Integer |
Returns the distance of the pointer from the left edge of the control. |
|
Integer |
Returns the distance of the pointer from the top of the control. |
|
Boolean |
Adds the specified event to the end of the event queue for the specified object |
|
Integer |
Prints the contents of the control. You can specify a range of pages and other settings. |
|
Integer |
Removes the application button from the RibbonBar control. |
|
Integer |
Changes the size of the control. |
|
Integer |
Sets the active category in the RibbonBar control. |
|
Integer |
Sets the active category according to its index in the RibbonBar control. |
|
Integer |
Sets the application button for the RibbonBar control. |
|
Integer |
Sets the category for the RibbonBar control. |
|
Integer |
Sets the check box for the RibbonBar control. |
|
Integer |
Sets the combo box for the RibbonBar control. |
|
Integer |
Sets focus to the control. |
|
Integer |
Sets the group for the RibbonBar control. |
|
Integer |
Sets an item for the RibbonBar control. |
|
Integer |
Sets the large button for the RibbonBar control. |
|
Long |
Sets the RibbonBar control to be minimized. When the RibbonBar control is minimized, only the application button title, the category title, and the tab header will be displayed. If the HideTabHeader property is set to TRUE (which means the application button title, category title, and the tab header are invisible), this function will not take effect. |
|
Integer |
Sets the panel for the RibbonBar control. |
|
Integer |
Specifies the front-to-back position of the RibbonBar control in the window. |
|
Integer |
Controls automatic redrawing of the control. |
|
Integer |
Sets the small button for the RibbonBar control. |
|
Integer |
Sets the tab button for the RibbonBar control. |
|
Integer |
Makes the control visible. |
|
Integer |
Triggers a specified event in the control and executes the script for the event. |
|
Object |
Returns the type of the control. |