> I tried it using fltk 1.1.x, and assume the answer is the
> same in fltk 2.0
>
> Casts are evil things.  If you hadn't used them, the
> compiler would have told you what was wrong.  Corrected
> bits are below.
>
> Cheers,
> Stan
>
>
>       inline void refresh_callback_i() {
>                       RefreshPlayerList();
>                       fltk::add_timeout(1.0,refresh_callback,this);
>       }
>
>       static void refresh_callback(void* v) {
>               ((ObserverWindow*)v)->refresh_callback_i();
>       }
>
>       inline void start_callback_i() {
>               RefreshPlayerList();
>               fltk::add_timeout(1.0,refresh_callback,this);
>       }
>

Dohh!
Thanks!

I should have looked at fltk::TimeoutHandler ... but i just wanted to get rid 
of the error :D

Hope i learned from it ...

Thanks again for the fast help.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to