Results 1 to 4 of 4

Thread: api and flickering

  1. #1
    Parker
    Guest

    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

  2. #2
    Member
    Join Date
    Jan 2002
    Posts
    35
    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.

  3. #3
    Lively Member
    Join Date
    Sep 2001
    Posts
    74

    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...

  4. #4
    Megatron
    Guest
    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
  •  



Click Here to Expand Forum to Full Width