[ROOT] gPad

From: Frederic Sarazin (sarazin@triumf.ca)
Date: Thu Mar 14 2002 - 18:43:47 MET


Dear ROOTers,

I have a question concerning the method: gPad->IsModified()...

Let's say that I've got a canvas with 4 subpads and gPad points to one
of them.
The command gPad->IsModified() returns (const unsigned char 0). Now, if
I click
on an other pad (or use the cd command) and enter the command
gPad->IsModified(),
I get (const unsigned char 0) again.

What I think is that gPad->IsModified() happens to be (const unsigned
char 1) just after
the pointer gPad has been changed and then goes back to 0 (perfect to
generate a signal !),
but I don't know how to test this.
But maybe I'm completly wrong and in fact, gPad->IsModified() goes to 1
when something
new has been attached to/painted to/removed from the active pad ! In
this case, can anyone tell me
if a specific method exists to tell the user when the address of gPad
has changed (in order to
generate a signal/an interruption).

Thanks for your help,

Fred



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:45 MET