Beginner C/C++

Moderators: None (Apply to moderate this forum)
Number of threads: 5428
Number of posts: 16949

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
trouble displayin multiple images Posted by corner on 8 Sept 2008 at 4:27 AM
im using borland and coding in cpp
i loaded six pictures into an imagelist and iside my timer i loaded them into an image to create an animation , but when i run the programme all my picturess are displayed at once. how can i display 1 picture at a time without have to load a blank picture before i load a new picture.

[load]
// inside timer function
Image1->Picture->Bitmap->LoadFromFile("blank.bmp");
ImageList1->Draw(Image1->Canvas,0,0,i,true);
Image1->Canvas->Refresh();
Image1->Left-=5;

i++;
Label1->Caption=IntToStr(i);
if(i>7)
i=0;
[\load]



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.