Disables all controls bound to the given list of commands.

Syntax

Send_Message(Ctrl, "OLE.DisableCommands", CommandList)

Parameters

ParameterDescription
CommandList@FM delimited list of command keys

Remarks

The DisabledCommands method conveniently batch disables a collection of commands. Simply pass an @FM delimited list of command keys, and all controls associated to all the commands will immediately disable. See also the EnableCommands and HideCommands methods. 

Example

// Disable several commands at once
Send_Message(@Window:".OLE_RIBBON", "OLE.DisableCommands", "NEW":@FM:"OPEN":@FM:"SAVE":@FM:"CLOSE") 

See Also

EnableCommands, HideCommands

  • No labels