Hi Carsten,
Carsten Driesner wrote:
Giuseppe Castagno wrote:
Hi all,
I wonder. Is it possible to change dynamically the button tooltip
string of an Addon toolbar?
I mean, changing dynamically the "Title" property that lives at:
/org.openoffice.Office.Addons/AddonUI/OfficeToolBar/my.addon.name.OfficeToolBar/mybutton
I was able to read it, but it seems it can't be updated.
Hi Giuseppe,
It's possible to change the button tooltip dynamically. The short
tooltip uses the button label as source. You can change the label via
status update (see com.sun.star.frame.FeatureStateEvent) from your
protocol handler implementation. Just put a String into the Any, assign
it to FeatureStateEvent.State and provide this status event via
statusChanged(). You cannot change the tooltip via the configuration API
without "reloading" the addon toolbar. From my point of view supporting
changes via the configuration API could degrade performance seriously.
I'm using the complex toolbar control feature [1] and changing both the
image and the tooltip worked like a charm!
Thanks.
--
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[1]
http://wiki.services.openoffice.org/wiki/Framework/Article/Generic_UNO_Interfaces_for_complex_toolbar_controls
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]