BBjMenu::getCheckableMenuItem

Description

In BBj 14.0 and higher, this method returns a checkable menu item from a BBjMenu.

Syntax

Return Value

Method

BBjCheckableMenuItem

getCheckableMenuItem(int ID)

Parameters

Variable

Description

ID

Specifies the ID of the checkable menu item to be retrieved.

Return Value

Returns the specified BBjCheckableMenuItem object.

Remarks

None.

Example

rem ' getCheckableMenuItem

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,200,100,"",$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
menubar! = window!.addMenuBar()
menu! = menubar!.addMenu(-100,"&Menu")
menu!.addCheckableMenuItem(-101,"Checkable")
menu!.addCheckableMenuItem(-102,"Initially Unchecked",0)
menu!.addCheckableMenuItem(-103,"Initially Checked",1)
item! = menu!.getCheckableMenuItem(-101)
process_events

eoj:
release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

BBjMenu

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.