Re: [ROOT] TGHProgressBar drawing

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Nov 01 2001 - 12:39:10 MET


Has been changed. Redraws now only when pos actually changes.


Cheers, Fons.



Thomas Bretz wrote:
> 
> Hello,
> 
> if I understand the code correctly TGHProgressBar::Setposition calls
> TGHProgressBar::DoRedraw. DoRedraw redraws the progress bar
> independantly of whether the progress bar changed or not (example: I
> have a range of 0,1000 events and a progressbar of 100pixel. I call
> SetPosition for any event, the progressbar is redrawn 1000times instead
> of 100times) In some circumstances you may waste much time redrawing
> something which is already visible. Is it possible to change this
> behaviour?
> 
> Best regards,
> Thomas.

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



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