nanogui: Re: [mail] Re: [nanogui] Changing Data


Previous by date: 19 Oct 2005 03:05:53 +0100 Re: Mouse events, Greg Haerr
Next by date: 19 Oct 2005 03:05:53 +0100 Re: problem in cross compiling viewml, Greg Haerr
Previous in thread: 19 Oct 2005 03:05:53 +0100 Re: [mail] Re: [nanogui] Changing Data, Dave Stuart
Next in thread:

Subject: Re: [nanogui] Re: [mail] Re: [nanogui] Changing Data
From: "Greg Haerr" ####@####.####
Date: 19 Oct 2005 03:05:53 +0100
Message-Id: <19ca01c5d44f$2a9cef40$6401a8c0@winXP>

: Okay, now how would I get the windows to update when the data in them
: changes?

Well, the data in a window never changes unless you update it.  And
you update it when the timer event comes back from GetNextEvent.
At that point, you call your draw procedure, to update the entire window,
just like it was an expose event, but called instead from the timer event.

Regards,

Greg



: 
: ----- Original Message ----- 
: From: "Greg Haerr" ####@####.####
: To: "Dave Stuart" ####@####.#### ####@####.####
: Sent: Sunday, October 16, 2005 5:17 PM
: Subject: [mail] Re: [nanogui] Changing Data
: 
: 
: > > I'd like to display a clock in a window.  How would I trigger the
: exposure
: > event every second (or minute) to update the display?
: >
: > GrCreateTimer will create a timer event, from which you can repaint
: >
: > Regards,
: >
: > Greg
: >
: 
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
: 
: 

Previous by date: 19 Oct 2005 03:05:53 +0100 Re: Mouse events, Greg Haerr
Next by date: 19 Oct 2005 03:05:53 +0100 Re: problem in cross compiling viewml, Greg Haerr
Previous in thread: 19 Oct 2005 03:05:53 +0100 Re: [mail] Re: [nanogui] Changing Data, Dave Stuart
Next in thread:


Powered by ezmlm-browse 0.20.