Hi Nico

What stops you from using some kind of event based programming?

I reckon you can get some kind of event when the users presses the OK dialog?

Regards

Mads

Mandag 24 november 2014 11:46:18 skrev Nico Krebs | www.mensch-und-maschine.de:
> Hello,
> 
> i want a simple way to pause and resume the execution of a script in rhino.
> i have read the debugger tutorials but it seems a lot of overhead to me
> to load a full debugger implementation to pause and resume the script
> execution.
> 
> so, what needs at least to be done?
> 
> 
> my scenario
> 
> script:
> 
>  var mydialog = dialog.showInputDialog(message);
>  var value = myDialog.result();
> 
> "dialog" is a java object providing methods to display a message in
> another gui component.
> 
> 
> in this gui component, a "ok" button click calls a method to retrieve
> the inputs and write them into the dialog object..
> 
> without stopping the script execution, the second line will be executed
> before the dialog button has been clicked.
> 
> my first guess was: use modal windows. but this does not work since i
> want to be able to do stuff in the gui and then click the OK button. so
> the script has to be paused when the message is shown and resumed when
> the OK button was clicked.
> 
> How can this be done with the least effort?
> 
> thank you in advance,
> nico
> 
>  
> 

-- 
Med venlig hilsen/Regards

Chefarkitekt/Chief Architect cand.scient.dat, Ph.d., Mads Bondo Dydensborg
Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 29 84 00 42


_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to