Office 2007 repurposed Commands Greying problem

A

Adrian Leeming

I want to enable and disable some of the built in commands on the Fluent UI
toolbar in Microsoft word. Now I am having some trouble getting a built in
command to be Invalidated so it calls its repurposed enabled routine again.

so I set up an addin to load a fluent xml with a routine to pick up the
Enabled status

<command idMso="BulletsGalleryWord" etEnabled="SCommandEnabled" />

Now it calls the SCommandEnabled routine when the xml is first loaded and
sets the enabled status a treat.

now if I try to invalidate the control using m_Ribbon.InvalidateControl
("BulletsGalleryWord") it does not cause the Command to reread its values
like it does for a user control. Is there a built in ribbon variable I can
use to cause the invalidate or is this a bug and I have to invalidate the
whole of my ribbon?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top