Issue 103486 - XMenuBar::getPopupMenu fails to return the menu
Summary: XMenuBar::getPopupMenu fails to return the menu
Status: CONFIRMED
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:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-13 05:08 UTC by pflin
Modified: 2022-11-03 14:45 UTC (History)
2 users (show)

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


Attachments
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 =
thiscomponent.getcurrentcontroller.getframe.layoutmanager.getelement("private:resource/menubar/menubar").XMenuBar
	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
Comment 3 oooforum (fr) 2022-11-03 14:45:03 UTC
Anybody to have a look?