BBjMenuBar
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjMenuBar
Description
The BBjMenuBar object provides methods for manipulating a GUI menu bar control.
Creation
A BBjMenuBar object is created through the following BBjTopLevelWindow methods:
Return Value |
Method |
BBjMenuBar |
|
BBjMenuBar |
Methods of BBjMenuBar
Return Value |
Method |
addMenu(int ID, string title) |
|
int |
|
getMenu(int ID) |
|
getMenuAt(int index) |
|
int |
getMenuIDAt(int index) |
string |
|
insertMenu(int index, int ID, string title) |
|
void |
removeMenu(int ID) |
void |
removeMenu(BBjMenu menu) |
void |
removeMenuAt(int index) |
Methods of BBjMenuItem inherited from BBjControl
CSS
The visual appearance of BUI controls is defined using CSS (cascading style sheets) rules. Easily change the default colors, border, and other settings by customizing these rules, all without changing any application code. See CSS API for a high-level overview of BUI CSS.
The BBjMenuBar defines the following style names:
.BBjMenuBar
.BBjMenuBar.bbj-disabled
Remarks
When using the BBjMenuBar object, it is not necessary to create a default menu on the form. Simply create a window without a menu bar and then use the BBjTopLevelWindow.addMenuBar() method to add the menu bar.
All ID values should be negative. If they are not given as negative, they will be changed to negative internally.
All index values are zero-based.
BBjMenuBar: The BBjMenuBar is the top-level bar that fits across the top of the window. BBjMenus are added to the menu bar. Each Top Level window can have one BBjMenuBar.
BBjMenu: A BBjMenu object is a menu that can have menu items and submenus within it. BBjMenu objects can be added to the BBjMenuBar and to other BBjMenus. When they are added to other BBjMenus, an arrow will point from the title and when the arrow is rolled-over, the submenu will appear.
BBjMenuItem: A BBjMenuItem object is a menu item that is not a submenu. They can be added to BBjMenus. The BBjMenuItem can be checkable. In this case a checkbox will appear next to the menu item's title. When the item is selected, the check will toggle.
The image below (Figure 1) illustrates the three different menu objects:
Constants inherited from BBjControl
Example
|
See Also
SETMENU Mnemonic - Set or Replace Menu
CALLBACK Verb - Register BBj Subroutine
DWC Component: dwc-menubar
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.