Enumerate all items in ribbon

Started by Nikolay, February 05, 2011, 08:15:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nikolay

How do I programmatically enumerate all commands/items/elements in the ribbon?

I mean, with CommandBars/UIObjects it was quite easy to do this.
But how do I do the same thing with the ribbon?

The only way I figured out is the Active Accessibility.
Maybe there is an easier approach?

What I want to do is to write an addin, which can be told to search the ribbon for a command by command name, if it's there, then highlight it, and if and if it's not there, then add it :)

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 131 (show)
Files included: 32 - 1218KB. (show)
Memory used: 1028KB.
Tokens: post-login.
Cache hits: 13: 0.00161s for 26,573 bytes (show)
Cache misses: 3: (show)
Queries used: 18.

[Show Queries]