rameshkancherla wrote:
Good morning,
This is Ramesh kancherla

i am implementing toolbar to openoffice.
in my tool bar 4 buttons are there .
one button contains dropdown option.

<toolbar:toolbaritem xlink:href="com.oo.cmdLive" toolbar:text="Live"
toolbar:style="dropdown"/>


i have to place atleast one popupmenu under that dropdown butoon.this
popupmenu will contain icon and label items.

popupmenu
icon label
icon label
icon label
icon label
icon label




how can i create this popupmenu and place it under dropdown button. or link
to dropdown button


can you please give me an advice.

i will be waiting for your replay.

Hi Ramesh K,

This will be a little bit complicated to achieve. First of all you have to implement your own toolbar controller using the OpenOffice.org SDK. The toolbar controller has to (see the service description com.sun.star.frame.ToolbarController for more information) support the com.sun.star.frame.XToolbarController interface. The controller is called by the toolbar implementation using createPopupWindow() whenever the user activates the dropdown button on the toolbar. Here you have to create your own popup menu (using com.sun.star.awt.PopupMenu) and fill it with your menu items using images and execute it. Execute() will provide you the menu item ID of the selected menu item. Currently there are only internal toolbar controllers using C++ classes which are not part of the OpenOffice.org SDK. So there is no OpenOffice.org SDK example for a toolbar controller. If you still want to implement this kind of toolbar controller, please let me know and I will try to provide you more details.

Regards,
Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to