<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Creating a simple animation on a window - Comments</title>
 <link>http://www.newlc.com/en/forum/creating-simple-animation-window</link>
 <description>Comments for &quot;Creating a simple animation on a window&quot;</description>
 <language>en</language>
<item>
 <title>Re: Creating a simple animation on a window</title>
 <link>http://www.newlc.com/en/forum/creating-simple-animation-window#comment-49552</link>
 <description>&lt;p&gt;If its just a simple bitmap animation, with a low framerate (say, below 15 fps or so), just letting a timer update the state (increase frame number) and call DrawNow() should be enough.&lt;/p&gt;

&lt;p&gt;CPeriodic is a very easy-to-use animation timer. &lt;/p&gt;

&lt;p&gt;Create a static callback:&lt;br /&gt;
&lt;pre class=&quot;bb-code-block&quot;&gt;
TInt CMyClass::MyTimerCB(TAny* aArg)
{
 CMyClass* self = (CMyClass*)aArg; // to be able to access members, since statics functions can&#039;t use &quot;this&quot; ptr

  return ETrue; //Return false to stop timer.
}
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;and create and start a CPeriodic member:&lt;br /&gt;
&lt;pre class=&quot;bb-code-block&quot;&gt;
 iTimer = CPeriodic::NewL(CActive::EPriorityStandard);
 iTimer-&amp;gt;Start(KFrameIntervalInMicroSeconds, KFrameIntervalInMicroSeconds, TCallBack(MyTimerCB, this));
&lt;/pre&gt;&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Tue, 02 Dec 2008 10:42:02 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 49552 at http://www.newlc.com</guid>
</item>
<item>
 <title>Creating a simple animation on a window</title>
 <link>http://www.newlc.com/en/forum/creating-simple-animation-window</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I would like to implement bitmap animtion...i went through the various Classes(CBitmapAnimClientData) present in symbian to achieve this....But in my case my application is a single window application....so i felt that these classes might create a new window for just the animation(which i dont prefer)....&lt;br /&gt;
I would like to know three things:&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/creating-simple-animation-window&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/creating-simple-animation-window#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Mon, 01 Dec 2008 14:27:56 +0100</pubDate>
 <dc:creator>ursnavin</dc:creator>
 <guid isPermaLink="false">22278 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
