Schuster Gerhard escribió:
Property name = >Image< Value=
Any[Type[com.sun.star.awt.XBitmap], null]
[...]
i.e. there is no SubContainer and no Image specified.
Concerning getPropertyValue("Image"), I think that something's broken
with the API (or I'm too fool make it work ;-) ): all I can get from the
object returned by getPropertyValue("Image") is a NULL reference to
XBitmap, this happens in every menu item. I'm also unable to set an
XBitmap reference to new menu items I add.
Hello Carsten,
hello Gerhard (hope you're still there!)
now that we got Carsten's attention, a puzzle I'd like to know if it has
an answer: is it possible to get or set an image to a context menu item
using XBitmap?
* a reference to XBitmap from the object returned by
getPropertyValue("Image") is always null
* to set an image by using setPropertyValue("Image", XBitmap): how do we
get a reference to XBitmap? I now how to get an XGraphic from an URL [an
XGraphic can be used in some UNO controls instead of "ImageURL"], but an
XBitmap is returned (so the API ref.) only by XDevice::createBitmap()
and ::com::sun::star::scanner::XScannerManager::getBitmap().
The obvious way to set an image in a context menu item is to set an
image for the command URL in the Addons.xcu config. file, but as the API
ref. for
http://api.openoffice.org/docs/common/ref/com/sun/star/ui/ActionTrigger.html#Image
says that the value for this property is an XBitmap, we should (in
theory) be able to get it and set it.
Regards,
Ariel.
--
Ariel Constenla-Haile
La Plata, Argentina
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.arielconstenlahaile.com.ar/ooo/
"Aus der Kriegsschule des Lebens
- Was mich nicht umbringt,
macht mich härter."
Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]