Hi Glen, I've implemented a new method TGClient::ProcessEventFor(TGWindow *w) that could be used instead of TSystem::ProcessEvents(). The code is in CVS. Please try and let me know if it works for you. Cheers, Fons. "Glen R. Salo" wrote: > > Hi ROOTERS, > > I have a main GUI which enables the user to perform operations which can > take several seconds to complete. During these operations, I popup a > transient progress meter indicating how long they have to wait. In order > to update the progress meter, I use gSystem->ProcessEvents() from a method > inside the main GUI. This works okay, but it has limitations -- > specifically, it enables events in the main GUI. Is there a way I can > avoid this problem? The only solution I know is to create a separate > class which includes both the time consuming method as well as the > transient progress meter and then put the command fClient->WaitFor(this) in > the transient progress meter class. I believe this will work, but I would > prefer a general purpose progress meter which I could use whenever there is > a time consuming process being executed by my main GUI. Does anyone have a > suggestion? > > Thanks, > > Glen -- 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:02 MET