BBjMenuItem::getParentPopupMenu

Description

In BBj 16.0 and higher, this method returns the parent BBjPopupMenu of this BBjMenuItem, or NULL() if the immediate parent of this BBjMenuItem is not a BBjPopupMenu.

Syntax

Return Value

Method

BBjPopupMenu

getParentPopupMenu()

Parameters

None.

Return Value

Returns the parent BBjPopupMenu of this BBjMenuItem, or NULL() if the immediate parent of this BBjMenuItem is not a BBjPopupMenu.

Remarks

None.

Example

Copy

BBjMenuItem::getParentPopupMenu Example

rem ' BBjMenuItem::getParentPopupMenu
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
title$ = "BBjMenuItem::getParentPopupMenu"
flags$ = $00090083$
window! = sysgui!.addWindow(100,100,400,100,title$,flags$)
window!.setCallback(window!.ON_CLOSE,"eoj")
popup! = window!.addPopupMenu()
menu! = popup!.addMenu(-100,"&First")
menu!.addMenuItem(-101,"&Sub Item 01")
menu!.addMenuItem(-102,"S&ub Item 02")
submenu! = menu!.addMenu(-200,"Su&b Item 03")
submenu!.addMenuItem(-201,"Sub Sub Item 04")
submenu!.addMenuItem(-202,"Sub Sub Item 05")
item! = popup!.addMenuItem(-300,"Item")
msg$ = "BBjMenuItem '"+item!.getText()+"' getParentMenu = "
msg$ = msg$ + str(item!.getParentPopupMenu())
print msg$
i = msgbox(msg$,0,title$)
process_events
eoj:
release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

BBjMenu

BBjMenuItem

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