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?
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?