Issue 103486 - XMenuBar::getPopupMenu fails to return the menu
Summary: XMenuBar::getPopupMenu fails to return the menu
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2009-07-13 05:08 UTC by pflin
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Patch to fix this issue (1.58 KB, text/plain)
2009-07-13 05:09 UTC, pflin
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pflin 2009-07-13 05:08:15 UTC
I try to get the popup menu from the main menubar in the following BASIC macro,
but throw a Basic runtime error.

Step to reproduce:
1. File a new document and run the following BASIC macro:

Sub Main
	dim oMenuBar
	dim nItemid
	dim oPopMenu
	oMenuBar =
	nItemid = oMenuBar.getItemId(0)
	oPopMenu = oMenuBar.getPopupMenu(nItemid)
	msgbox oPopMenu.isPopupMenu
End Sub

2. It throws a "Basic runtime error" in the macro line:
msgbox oPopMenu.isPopupMenu
Comment 1 pflin 2009-07-13 05:09:16 UTC
Created attachment 63500 [details]
Patch to fix  this issue
Comment 2 jsc 2009-07-13 08:44:16 UTC
jsc -> cd: one for you