cmd This is the command string that is being queried for. These commands are the
same as those listed for the execCmd function.
Zurückgegebener Wert
bool
This method will check to see if a given command is enabled for this DHTML
control. For a list of all available command strings please see the dhtmlBox::execCmd function.
function UpdateCtxMnu()
{
var box = scene.getBoxById("myHtmlBox");
var mnu = scene.getBoxById("myMenu");
if (box && mnu)
{
var shouldDisable = !box.queryCmdEnabled("undo");
// Locate and disable undo item in menu here.
}
}