Page History
...
The CommandEnabled property enables or disables all a given command's controls. When you defined the command during the Init method, you gave it a unique key. You must pass that key in order to enable or disable it. Since a command can be associated with any number of buttons, enabling or disabling a command affects all its buttons at once. This makes it much easier to manage common commands like SAVE or UNDO, which can often appear in multiple places on the ribbon.
...
Code Block |
---|
// Disable all save buttons at once Set_Property(@Window:".OLE_RIBBON", "OLE.CommandEnabled[SAVE]", 0) |