|
-
Jan 28th, 2002, 04:29 PM
#1
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
-
Jan 29th, 2002, 01:15 AM
#2
Member
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.
-
Jan 30th, 2002, 12:19 AM
#3
Lively Member
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
All will fall before the might of the Black Sashi...
-
Jan 30th, 2002, 04:29 PM
#4
Usually, setting the AutoRedraw property of your container to True helps.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|