Carsten Driesner wrote: > > > ... 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. ... > >
Carsten, how do you set images using the com.sun.star.awt.PopupMenu service ? It implements XPopupMenu, which does not expose any setImage function. In the OO's UI File/New menu, oo uses the newmenucontroller (http://framework.openoffice.org/source/browse/framework/framework/source/uielement/newmenucontroller.cxx?rev=1.11.30.1&view=markup), which internally uses pPopupMenu->SetItemImage( nItemId, aImage ). SetItemImage, however is not part of XPopup or any other interface definition ... It seems necessary to program a menucontroller in C and to rebuild OO to do use the same approach in order to use SetItemImage in an own PopupMenuController ... or alternatively program the popup menu window from scratch using only the drawing primitives ms777 -- View this message in context: http://www.nabble.com/POPUPMENU-tp17917898p18142362.html Sent from the openoffice - dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
