Vikas Patel wrote:
FYI, it’s not custom toolbar, but it’s add-on toolbar.. which is installed with my add-in J.
Best Regards,

Vikas Patel | Team Coordinator | Decos Software Development Pvt. Ltd (“ISO 9001: 2000 Certified Company”)
Hi Vikas,

You can hide a button in any toolbar (normal, custom, add-on) if you have a com.sun.star.frame.DispatchProvider implementation and provide a com.sun.star.frame.FeatureStateEvent which includes the following attributes:

published struct FeatureStateEvent: com::sun::star::lang::EventObject
{
   com::sun::star::util::URL FeatureURL;
   string FeatureDescriptor;
   boolean IsEnabled;
   boolean Requery;
   any State;
};

If you put a com.sun.star.frame.status.Visibility type into aState and set the bVisible attribute to false then the button will be invisible.

Regards,
Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org

Reply via email to