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.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]