BBjPopupMenu::getID

Description

In BBj 8.0 and higher, this method returns the ID of a BBjPopupMenu.

Syntax

Return Value

Method

int

getID()

Parameters

None.

Return Value

Returns the ID of the BBjPopupMenu.

Remarks

This ID will be unique within the SysGui. If the PopupMenu has come from a resource and the ID is available, the ID will be the TopLevelID.

Example

rem ' BBjPopupMenu::getID Example

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
popup! = sysgui!.addPopupMenu()
popup = popup!.getID()
assert sysgui!.getPopupMenu(popup) = popup!
i = msgbox("BBjPopupMenu::getID = " + str(popup))
release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjPopupMenu

BBjMenu

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