Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic disable repaining while changing chart (Read 2342 times)
x-fgi
YaBB Newbies
*
Offline



Posts: 35
Joined: Aug 14th, 2009
disable repaining while changing chart
Jul 30th, 2010 at 7:55am
Print Post  
Hi Stoyo,
Is there a way to disable repainting while performing changes in the chart?
i.e if I have to perform a long series of programmatic operation on a flowchart, e.g. adding boxes and arrows, moving  them in proper position, resizing document, panning and zooming... I don't wont to see the boxes continuosly moving aroung the screen : could it be good while running in debug environment, but is too time spending and not good to see while running in production environment.

I try to set Flowchart.Visible:= False before starting the series of operation and reset Visible := True at the end, more or less seems to work, but this cause the flowchart to be unselected and this is somewhat undesired.

an example: I use the Mouse wheel to zoom in and out.
when I make a zoomin I perform several panning and zooming operation; if I set visible /not visible the flow chart, the mouse loose the selection with flowchart, so the next onmousewheel  will no more be fired.....

so :Is there another way to disable repainting ( like a Disablepaint property?)

Thank you
Franco
  

Franco
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: disable repaining while changing chart
Reply #1 - Jul 30th, 2010 at 9:11am
Print Post  
Hi Franco,

This should not happen unless your application runs the Windows message pump (e.g. DoEvents in VB6) while performing the long operations. There's no property available to disable repainting, but you might try calling the Win32 ValidateRect() API function before DoEvents to stop the WM_PAINT messages.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint