Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loop pictures?

Status
Not open for further replies.

Muk108

Programmer
Joined
Dec 28, 2001
Messages
5
Location
US
How do i loop pictures that i have in an imagelist and them stop when it is at the end
 
Try the Class TAnimate
hnd
hasso55@yahoo.com

 
How would i do that i just started im not sure what you mean. Im using a timer and when you hit any key it is suposed to enable the timer and start going through the imagelist.

if you could help.
 
I Can not do anything else than you: Read Helps and Check the Objects, Properties, Methods and events.

As i understood, you have to store a picture sequence to the Frame Frame object, set the replay parameters and use the Play method.

hnd
hasso55@yahoo.com

 
i dont know what the play method is. i dont know what you mean by that.
 
If you don't know what ist a method, property, etc. then I think you should get a little bit familiar with Classes and the C++ - Builder IDE.


hnd
hasso55@yahoo.com

 
This is simple. I recommend you use images directly from files. Put this at OnTimer1Timer

switch(index1)
{
case 0: Image1->Picture->LoadFromFile("1.bmp");
break;
case 1: Image1->Picture->LoadFromFile("2.bmp");
break;
case 2: Image1->Picture->LoadFromFile("3.bmp");
index1 = 0;
break;
}
index1++;

Then declare index1 on the file Form1.h after the private: ThanQ, ;-)

JVFF (Janito Vaqueiro Ferreira Filho)
 
HI

If you already have them in a TImageList, you could use the Tag property to keep track of how fare you are and stop when Tag > ImageList1->Count.
For each picture you can use the Form1->Canvas->Draw(X,Y,Image) function to draw the bitmap.

Regards Klaus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top