Yes, this option is much better. It worked thanks!
MacArthur, Ian (SELEX GALILEO, UK) schrieb: >> -> fltk: 1.1.9 / Target-System: MPC5200 / Crosscompiler: ELDK >> >> 1. I included Fl_Timer.H >> 2. I defined: static Fl_Timer *timer = (Fl_Timer*)0; >> 3. Initialised: >> timer = new Fl_Timer(FL_VALUE_TIMER, 60, 240, 100, 30, 0); >> timer->callback((Fl_Callback*)callback_Timer); >> >> The Timer-field is shown but it isn't counting nor is the >> callback-function called. What am I doing wrong? >> >> What I finally want, is a callback every 1/5 seconds. And I >> think this >> could be done like this. In the end, the timer should be >> FL_HIDDEN_TIMER, I just definded VALUE, because I wanted to see if it >> counts... >> >> Or ist this timer-function used another way? Or is there another >> possibility? > > If all you want is to trigger a callback periodically, I wouldn't bother > with setting up your own timers. > > Rather, just use the Fl::add_timeout() and Fl::repeat_timeout() methods > to set up a periodic callback directly. Much easier. > > See Greg's cheat pages for tips: this one in particualr might be a good > place to start - > > http://www.seriss.com/people/erco/fltk/#Animate > > > > SELEX Sensors and Airborne Systems Limited > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 > 3EL > A company registered in England & Wales. Company no. 02426132 > ******************************************************************** > This email and any attachments are confidential to the intended > recipient and may also be privileged. If you are not the intended > recipient please delete it from your system and notify the sender. > You should not copy it or use it for any purpose nor disclose or > distribute its contents to any other person. > ******************************************************************** > _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

