Re: [ROOT] pause in a macro

From: Ursula Berthon (berthon@in2p3.fr)
Date: Wed Apr 23 2003 - 15:08:53 MEST


On Tue, 22 Apr 2003, Rene Brun wrote:

> Hi Ursula,
>
> see TPad::WaitPrimitive
>
> Rene Brun
>
Thanks Rene, and all others who gave me hints!
TPad::WaitPrimitive("name_that_doesnt_exist") for the graphics pad works
fine. I tried also the other solution with
cin.get(), but then it is not possible to interact with the graphics.
A TSystem::Pause() would be even nicer, because then you dont have to
worry about arguments.

Cheers,
      Ursula

>
On Tue, 22 Apr 2003, 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
> >
>


        Gruss/greetings/A bientot!

                         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