DzSimulateAction - Cancel

When I run the script below, can I somehow detect that the user has pressed the Cancel button in the Simulate window?

var oMgr = MainWindow.getActionMgr();

oAction = oMgr.findAction("DzSimulateAction");

if( oAction ){

oAction.trigger();

}

Comments

  • Richard HaseltineRichard Haseltine Posts: 100,948

    As far as I know control is passed to the action, but that should be cancelable (assuming it isn't busy processing a long list of short springs, during which it is not checking the event queue).

Sign In or Register to comment.