List Info

Thread: How to make a ToolBar with Icons?




How to make a ToolBar with Icons?
user name
2006-10-25 12:07:00
Knut Olav Bøhmer wrote:
> On 10/25/06, Carsten Driesner <carsten.driesnersun.com> wrote:
>>
>> Knut Olav Bøhmer wrote:
>> > On 10/24/06, Carsten Driesner
<carsten.driesnersun.com> wrote:
>> > <cut>
>> >
>> > Function CreateToolbarItem( Command as String,
Label as String ) as
>> Variant
>> >>     Dim aToolbarItem(3) ' as new
com.sun.star.beans.PropertyValue
>> >>
>> >>     // The command you want to be
dispatched if the user presses the
>> >>     // button. It also references an
optional image.
>> >>     aToolbarItem(0) =
MakePropertyValue("CommandURL", Command)
>> >>     ...
>> >>
>> >>     CreateToolbarItem = aToolbarItem()
>> >> End Function
>> >>
>> >> There can be problems with Basic URLs
which reference images. I
>> >> currently investigate this problem and
will post information as 
>> soon as
>> >> I have found the root cause.
>> >
>> >
>> > Thanks alot. Should I make an issue in the
issue tracker?
>> Hi Knut,
>>
>> Could you reproduce the problem with Basic URLs?
> 
> 
> I'm not sure what you mean by reproduce the problem
with Basic URL. I don't
> understand how to add an image to the toolbar I created
through the API (I
> use StarBasic). So the problem is the documentation
(maybe).
Hi Knut,

I am sorry but I understood that you have the same problem
Kami 
reported. He used a Basic macro URL which references an
image he added 
to the images.zip file. Although he used the correct name
for the image, 
the toolbar doesn't use/find the image.
If you think that the documentation should be more precise
on how to 
bind images to commands, then you can write me a bug.

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 )