
BBjPopupMenu::addCheckableMenuItem
Description
In BBj 14.0 and higher, this method adds a checkable menu item to a BBjPopupMenu.
Syntax
Return Value |
Method |
---|---|
addCheckableMenuItem(int ID, string title) |
|
addCheckableMenuItem(int ID, string title, boolean checked) |
Parameters
Variable |
Description |
---|---|
ID |
Specifies the ID of the checkable menu item to be added. |
title |
Specifies the title of the checkable menu item. |
checked |
Specifies whether the checkable menu item is initially checked. |
Return Value
Returns the created BBjCheckableMenuItem object.
Remarks
None.
Example
BBjPopupMenu::addCheckableMenuItem Example
rem ' addCheckableMenuItem
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,200,100,"",$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
menu! = window!.addPopupMenu()
menu!.addCheckableMenuItem(-101,"Checkable")
menu!.addCheckableMenuItem(-102,"Initially Unchecked",0)
menu!.addCheckableMenuItem(-103,"Initially Checked",1)
process_events
eoj:
release
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.