photon animation code sample?

Does anyone have a code sample for an animation in a photon application? I somehow don’t understand the documentation under

qnx.com/developer/docs/momen … /draw.html

completely. I have an OSContainer containing a polygon that i want to rotate. I added a timer to my project that calls its activation callback every 40 ms. I don’t understand the part with the widget database. How do i create such a database and how do i get my animation frames (the rotating polygon widget) into it? It would be nice if someone could provide me with a small code snippet or a suggestion of some kind.

Hey lanfeust,

You might wanna check out the eqip project (eqip.sourceforge.net)
There are some photon apps in there that make use of such things you
want (like the statusbar with the battery monitor on it).

Greetz,

Martin.