Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 19th, 2012, 05:40 PM
sgpvatt sgpvatt is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Posts: 2 sgpvatt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 52 sec
Reputation 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.

Reply With Quote
  #2  
Old June 19th, 2012, 11:50 PM
Luthfi Luthfi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 140 Luthfi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 53 m 15 sec
Reputation Power: 2
Quote:
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.

Reply With Quote
  #3  
Old June 20th, 2012, 05:51 PM
sgpvatt sgpvatt is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Posts: 2 sgpvatt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 52 sec
Reputation Power: 0
Smile

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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Moving images without flickering

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap