Re: Wait function of PAW

Marek Kowalski (Marek.Kowalski@cern.ch)
Wed, 26 May 1999 09:04:26 +0200 (METDST)


Hi Olivier,

As far as I know there is nothing like this.
Look at my example below, it's a part of a larger macro with several
histograms h1,h2 etc.

.......................................

char *s = new char[1];

TCanvas *c = new TCanvas("c","histograms");

h1->Draw();
c->Update();

gets(s); // "return" is enough, root waits until you hit a key

h2->Draw();
c->Update();

gets(s);
...............................................................

Please note that the "Update" is necessary!

Regards, Marek Kowalski

On Wed, 26 May 1999, Olivier Meplan wrote:

> Hi ROOTers!
>
> Is there in ROOT a function like "wait" in PAW wich is waiting that the
> user hits Enter key to continue?
>
> Thanks
> Olivier Meplan
>