method queryCmdEnabled

bool queryCmdEnabled(string cmd);

Argumente

Zurückgegebener Wert

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.
    }
}