#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    2
    Rep Power
    0

    Unhappy Moving images without flickering


    I am trying to move several images quite fast in a form
    by changing the position of the image by altering the
    Image.left: value. When I run the program I see that
    there is flickering on top of the background. I want instead smooth movements of the images. All images have the imageproperty transparent.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    151
    Rep Power
    3
    Originally Posted by sgpvatt
    I am trying to move several images quite fast in a form
    by changing the position of the image by altering the
    Image.left: value. When I run the program I see that
    there is flickering on top of the background. I want instead smooth movements of the images. All images have the imageproperty transparent.
    Try to use SetBounds instead. Using SetBounds allows you to alter the Left and Top property in one go, so no drawing happened in between.

    If that does not help, try to set the DoubleBuffered property of parent of the images to True.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    2
    Rep Power
    0

    Smile


    Originally Posted by Luthfi
    Try to use SetBounds instead. Using SetBounds allows you to alter the Left and Top property in one go, so no drawing happened in between.

    If that does not help, try to set the DoubleBuffered property of parent of the images to True.
    Thank you for your help. The second proposal was very
    successful. For the first I could not find a SetBounds for
    images only rectangles but I hope I can find out how to
    do it that way.

IMN logo majestic logo threadwatch logo seochat tools logo