-
api and flickering
i've looked over this forum a few times (note: a few lazy times). my friend tells me there is api code to stop images from flickering when moving them on a form. i have yet to find it on this forum by searching, so i figured i'd go one step up and ask. this is nothing complicated, i just want to move an image box across a form without it flickering. if anyone knows how this can be accomplished, please tell me. thanks
-
the best way to do simple animation is to use bitblt api. Just look around here or planet source code there are tons of bitblt tutorials.
-
Image
I think all you need to do is Form1.refresh everytime the image moves. If you are using a loop then you'll want to take big steps through it as the refreshing can slow things down quite a bit espesially if you have a background picture.
for i = 300 to 3000 step 400
image1.move i
form1.refresh
next
-
Usually, setting the AutoRedraw property of your container to True helps.