Re: [ROOT] TSlider (non)updates.

From: Brett Viren (bv@bnl.gov)
Date: Thu Aug 30 2001 - 23:26:38 MEST


Fons Rademakers writes:
 > 
 >    ForceRedraw() only works for TG classes.
 > Just send me a little example program.

Okay, below is the essential of what I am trying to do.  It will
create a TRootEmbeddedCanvas in a TGMainFrame.  The canvas will hold 2
TPads, each of which holds a TPave.  Also a class ("Noisy") will
create the TSlider and inside its ExecuteEvent will try to Range the
upper TPad.

This actually shows 3 problems:

1) The original one I described, namely, the TSlider won't redraw
   correctly until after the move.

2) On the inital openning of the display, things are "screwed up".  A
   manual resize will clear them.  I have this problem a lot and have
   usually solved it by creating everything 1 pixel to small and then
   calling TGMainFrame::Resize().  If there is a better solution, I'd
   appreciate knowing it.

3) Somehow, the top TPad doesn't actually Range() itself in response
   to the Range() method called in Noisy::ExecuteEvent().  This part
   actually works in my own app.

-Brett.






This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:59 MET