
BBjPopupMenu::getCheckableMenuItemAt
Description
In BBj 14.0 and higher, this method returns a checkable menu item from a BBjPopupMenu.
Syntax
Return Value |
Method |
---|---|
getCheckableMenuItemAt(int index) |
Parameters
Variable |
Description |
---|---|
index |
Specifies the 0-based index of the checkable menu item to be retrieved. |
Return Value
Returns the specified BBjCheckableMenuItem object.
Remarks
None.
Example
Copy
BBjPopupMenu::getCheckableMenuItemAt Example
rem ' getCheckableMenuItemAt
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)
item! = menu!.getCheckableMenuItemAt(0)
process_events
eoj:
release
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.