BBjMenu::getCheckableMenuItemAt

Description

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

Syntax

Return Value

Method

BBjCheckableMenuItem

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

rem ' getCheckableMenuItemAt

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!.getCheckableMenuItemAt(0)
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.