BBjCheckableMenuItem
Description
The BBjCheckableMenuItem object provides methods for manipulating a checkable menu item control.
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjMenuBar > BBjMenu > BBjMenuItem > BBjCheckableMenuItem
A BBjCheckableMenuItem object is created through the following BBjMenu methods, where checkable must be set to true (1):
Return Value |
Method |
---|---|
addMenuItem(int ID, string title, boolean checkable, boolean checked) |
|
insertMenuItem(int index, int ID, string title, boolean checkable, boolean checked) |
|
addCheckableMenuItem(int ID, string title) |
|
insertCheckableMenuItem(int index, int ID, string title) |
|
insertCheckableMenuItem(int index, int ID, string title, boolean checked) |
Methods of BBjCheckableMenuItem
Return Value |
Method |
---|---|
boolean |
|
void |
setSelected(boolean selected) |
Methods of BBjCheckableMenuItem inherited from BBjMenuItem
Return Value |
Method |
---|---|
void |
setAccelerator(string accel) |
void |
Methods of BBjCheckableMenuItem inherited from BBjControl
Events
Callback Code |
Object-oriented Event |
Read Record Event |
Code |
ON_MENU_ITEM_SELECT |
C |
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 BBjCheckableMenuItem defines the following style names:
.BBjCheckableMenuItem
.BBjCheckableMenuItem.bbj-checked
.BBjCheckableMenuItem.bbj-disabled
.BBjCheckableMenuItem.bbj-selected
.BBjCheckableMenuItem-check
.BBjCheckableMenuItem-check.bbj-selected
.BBjCheckableMenuItem-image
.BBjCheckableMenuItem-image.bbj-selected
.BBjCheckableMenuItem-content
.BBjCheckableMenuItem-content.bbj-selected
.BBjCheckableMenuItem-accel
.BBjCheckableMenuItem-accel.bbj-selected
Remarks
None.
Constants inherited from BBjControl
Example
|
See Also
DWC Component: dwc-menuitem
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.