Hi Mads, yes, event based handling would be an alternative. But the system is big and was previously build on model dialogs wich blocked the interpretation as expected. the windows we needed the user to work with were pushed into the modal dialog. this behaviiour is no longer applicable for several reasons.
if no other alternative applies, i have to switch to event based scripting which would mean to refactor a lot of scripts. Thanks or the suggestion! Nico > Mads Bondo Dydensborg <mailto:[email protected]> > 24. November 2014 12:31 > 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 > > Nico Krebs | www.mensch-und-maschine.de > <mailto:[email protected]> > 24. November 2014 11:46 > 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 > > -- Nico Krebs Michelangelostraße 1 01217 Dresden web: www.mensch-und-maschine.de mobil: 0162 / 85 89 667 mail: [email protected] skype: k-dottus icq: 324 143 104 fax: 032 12 - 11 39 77 6 twitter: nico_krebs _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
