BBjMenuBar::getMenuIDAt

Description

Returns the ID of a menu from the BBjMenuBar.

Syntax

Return Value

Method

int

getMenuIDAt(int index)

Parameters

Variable

Description

index

Specifies the 0-based index of the menu to be returned.

Return Value

Returns the ID of the specified menu.

Remarks

None.

Example

rem ' BBjMenuBar::getMenuIDAt

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(25,25,200,200,"getMenuIDAt",$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")
menubar! = window!.addMenuBar()
menu! = menubar!.addMenu(-100,"&Menu")
id = menubar!.getMenuIDAt(0)
msg$ = "Menu '" + menu!.getText() + "' ID: " + str(id)
print msg$
i = msgbox(msg$,0,"BBjMenuBar::getMenuIDAt")
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.