A Menubar button with a popup menu is (I understand) possible with an xtoolbarcontroller but that can't be implemented with the OOBasic language.
Making a popup menu show when a menubar button is clicked is easy but a workaround is needed to:
- get it positioned
- so the menu shows when the button is pressed rather than clicked
- so a menu item can be selected with the mouse still held down
See attached demo for menu example.
A dropdown using a dialog could be accomplished in the same way.
(note only tested in OpenOffice)
'UPDATES
'14 01 20: added missed sub THANKS TO musikai