List Info

Thread: Adding pictures to a Component




Adding pictures to a Component
user name
2006-11-21 15:40:42
Tobias Krais wrote:
> Hi Carsten,
> 
>> Just have a look at the following Basic code
snippet. It adds a button
>> to the Writer standard bar and sets an image for
it. You have to adapt
>> the code to your environment (e.g. the path to the
image).
> 
> the code looks very interesting. I would have to
translate it to java.
> Since I already add a menu item, it should not be the
problem to add the
> image, too. But I would prefer to deploy the image
within the uno
> package and to let it add automatically each time the
CommandURL is used
> for an item. Thus - I think - I have to prefer Laurants
solution!?
> 
Hi Tobias,

The Addons.xcu way should be preferred, it's easier to use.
I thought 
that you don't want to deploy anything. Therefore I provided
you another 
solution which can be used without Addons.xcu.

Regards,
Carsten

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )