DzSimulateAction - Cancel
Michal P.
Posts: 79
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
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).