paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] TIMER WIDGET


From: Alexander Pipelka
Subject: Re: [paragui-users] TIMER WIDGET
Date: 28 May 2002 18:52:57 +0200

Am Die, 2002-05-28 um 18.28 schrieb Keith Swyer:
> 
> hey, first, i haven't really done much to prepare the CW project to send to
> you alex, and am not sure how to set up a proper 'patch'.? i've done diffs
> to 1.0.1, is that all you need??

Yes.
Patch <=> Diff :))

> now onto my timer question. Is it possible to create a widget that can be
> called automatically every x ms ? the restrictions are that it cannot be
> dependent on threads or the SDL timer functions (as they need thread
> support). i'm in need of basically checking if the periodic time of the
> widget has elapsed, and if so, run a function. i know that i could just hack
> the event loop to do a check on a queue of timed events, but that's getting
> messy. any ideas??

Take a look at animation.cpp in the "test" dir.
This one should help you. But i think the callback mechanism could be
done better (maybe like in pgmpeg).

Alex






reply via email to

[Prev in Thread] Current Thread [Next in Thread]