Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
555
Option Button behaviour of buttonTools within toolbar.
posted

Hi.

Is it possible to define behaviour of ButtonTools on the ToolBar as behaviour of option button group?

I.e. when one is pressed, another one depressed. The problem is that each ButtonTool fires it's own CAB command, so everything handled "outside" the control itself.

The sample of such behaviour is Ms Office 2007 menu bar, image attached.

 

 

  • 44743
    posted

    You would want to use StateButtonTools instead of ButtonTools. Set each of the StateButtonTool's OptionSet or OptionSetKey to the same value. It will ensure only one StateButtonTool from the OptionSet can be pressed at one time.