This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Flickering in Canvas (Yes, I've read all older posts... but the problem stands)

 
Jeronimo Backes
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm creating a canvas where the user can create a diagram, so he draw some circles, links between them, etc.

The problem is that when the canvas is updated (e.g. the user moves a line) a great flickering happens. So, the closer I came up was with that code, but if a component is moved, it leaves its "trail". The latter image remains, after the component in its new position is drawn.

I've already searched in all the posts of this forum, and implemented as suggested (it's always the same resolution)... But it just don't want do work with me. Take a look at the code:





I made everything I could think. Someone can please tell me what is wrong?
[ August 09, 2005: Message edited by: Jer´┐Żnimo Backes ]
 
Jeronimo Backes
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ha! I'm a lame!

The GREAT and FANTASTIC problem is solved painting the background in white and then draw.



FANTASTIC!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic