If you run the following code you will notice that the evaluation continues in the following cells.
I want to abort evolution if CancelButton is clicked.
I tried to use FrontEndTokenExecute["EvaluatorAbort"] but it doesn't help:
DynamicModule[{yyyy = 2015, mm = 6, dd = 20}, DialogInput[Grid[{
{"Year:", InputField[Dynamic[yyyy], Number]},
{"Month:", InputField[Dynamic[mm], Number]},
{"Day:", InputField[Dynamic[dd], Number]},
{CancelButton[
DialogReturn[FrontEndTokenExecute["EvaluatorAbort"]]],
DefaultButton[DialogReturn[{Year = yyyy, Month = mm, Day = dd}]]}
}, Spacings -> {1, Automatic}, Alignment -> Left]]];
RandomReal[]
Any idea?
Thanks