Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2009

    Display Gif Animation on one side of the screen

    Hi, I previously posted a topic about gif animations and have since created a working gif animation demo, whereby an animated gif of a running man is displayed on the screen, and currently I am changing the "speed" of the run by altering the interval time.

    However, in my example the gif is drawn to the entire screen by using:

    DrawBitmap(Rect(), iBitmap);
    What I need to do is to not run this animation as a full screen animation, instead I would like to have the animation running on the left hand side of the screen, with some information displayed on the right.

    I've tried nievely attempting to resize the Rect() object as follows:

    TRect halfRect = Rect();
    gc.DrawBitmap(halfRect, iBitmap);
    But the animation was still displayed in full screen mode. I have even attempted using TPoints to just move the animation to the side, but this resulted in the animation not playing at all.

    I was wondering if anyone could point me in the direction of an example to resize and reposition the gif (as the examples I have seen currently discuss displaying the animation as full screen). Or if it is possible to split the container in two somehow, and have the animation drawn to the left, and the information labels to the right.

    Thanks in advance.


  2. #2
    Super Contributor
    Join Date
    Mar 2004

    Re: Display Gif Animation on one side of the screen

    TRect::Resize() takes Pixels in Int. so yours will be TRect::Resize(0,0)

  3. #3
    Registered User
    Join Date
    Oct 2009

    Re: Display Gif Animation on one side of the screen


    Thanks for your speedy reply

    I've managed to get the small demo I made display only in one area by adding points into TRect():

    Thanks again!

Similar Threads

  1. Replies: 3
    Last Post: 2010-01-12, 20:54
  2. How to draw an animation on standby screen?
    By linxin79 in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-04-02, 18:46
  3. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  4. Replies: 1
    Last Post: 2006-12-21, 15:27
  5. How to display an icon on the main screen
    By sergiutruta in forum Mobile Java General
    Replies: 2
    Last Post: 2005-02-15, 12:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts