Dear Ursula I would also be interested in such a solution. At one time I have written the following short function, but did not have time until now to use it or improve it. The test function is: void step() { char ch; Int_t i = 0; while(!gSystem->ProcessEvents()) { if (i > 4) break; cout << "step = " << i << endl; cin.get(ch); i++; } }//step Maybe it helps you to find a better solution. Best regards Christian _._._._._._._._._._._._._._._._ C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a V.i.e.n.n.a A.u.s.t.r.i.a _._._._._._._._._._._._._._._._ Ursula Berthon wrote: >Hi, >I would like to be able to stop the execution of a macro until the user >hits a key (e.g. return) in order to go ahead with the excution. The >application is typically something like a display of a selected event: >one loops over the events, selects an interesting one and executes >another macro to see it in a display. The program execution should then >stop to give the time to have a look, and resume after a key has been hit. > > I tried to use G__pause(), but >then the user is not able to interact with the display any more. >Thanks for your help! > Ursula > >************************************************************* > Ursula Berthon > E-mail berthon@in2p3.fr > Tel. 33 - 1 - 69 33 31 21 > Fax 33 - 1 - 69 33 30 02 > > > > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET