BBjMenu::getParentPopupMenu

Description

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

Syntax

Return Value

Method

BBjPopupMenu

getParentPopupMenu()

Parameters

None.

Return Value

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

Remarks

None.

Example

rem ' BBjMenu::getParentPopupMenu

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
title$ = "BBjMenu::getParentPopupMenu"
flags$ = $00090003$
window! = sysgui!.addWindow(100,100,300,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")
menu$ = menu!.getText()
parent$ = str(menu!.getParentPopupMenu())
msg$ = "BBjMenu "+menu$+" getParentPopupMenu "+parent$
print msg$
i = msgbox(msg$,0,title$)
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.