Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Moving shapenodes programatically (Read 1205 times)
frankinstien
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Nov 10th, 2010
Moving shapenodes programatically
Jan 21st, 2013 at 11:00am
Print Post  
Is there a way to move shape nodes programmatically without causing each move of a node to invalidate the screen?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moving shapenodes programatically
Reply #1 - Jan 21st, 2013 at 2:29pm
Print Post  
Moving a node only marks the area for repainting by calling Control.Invalidate, but the actual drawing code is called only when the application becomes idle and receives a WM_PAINT massage from the OS. If you want to prevent the Invalidate call for some reason, you can override the Diagram.OnRepaint method and do not call base.OnRepaint when invalidation is suspended.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint