Re: [ROOT] GUI strategy ?

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Aug 21 2001 - 19:51:45 MEST


Hi Robert,

  use TTimers to periodically update the GUI. See for example
$ROOTSYS/test/Aclock.cxx and Tetris.cxx.

Cheers, Fons.



Robert Michaels wrote:
> 
>    I am using root 3.01-06, RedHat 6.2, Linux kernel
> 2.2.19-6.2.7
> 
>    This is an elementary question about root GUI's.  I want
> to show data periodically (say, once per 5 seconds), and
> have the user press "Start" to start the whole thing.
> Users will also press other buttons, e.g. to change to another
> page of display, etc.  But the data should be updated period-
> ically and automatically.
> 
>    I have learned how to "ProcessMessage" and to request
> the "NeedRedraw" which successfully updates data in my GUI,
> but how to make this automatic ?  Is the general idea to
> start a "TThread" try to make "NeedRedraw" requests there,
> or to have my thread send messages back to the GUI window ?
> 
> thanks,
> Robert
> ------------------------------------------------------
> Robert W. Michaels
> www.jlab.org/~rom
> phone (757) 269 7410   pager (757) 881 7897
> Thomas Jefferson National Accelerator Facility
> 12000 Jefferson Ave, Newport News, VA 23606 USA

-- 
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:50:58 MET