kafe
kafe

Reputation: 157

How to keep button down on a ribbon

I've got a custom ribbon tab in Excel. Is there any way to keep a custom toggle button pressed down?

I found an example in the VIEW > Workbooks Views section. One view can be selected and button is kept down.

Example

Upvotes: 1

Views: 1262

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49453

You need to use the toggleButton control and use the getPressed callback which allows to specify whether the toggle button control is pressed or not. You can read more about the Ribbon UI in the following series of articles in MSDN:

Upvotes: 1

Related Questions