Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Force painting (Read 2143 times)
SaschaW
YaBB Newbies
*
Offline



Posts: 9
Joined: Oct 4th, 2005
Force painting
Jul 27th, 2006 at 6:52am
Print Post  
Hi,

i do some changes at the FlowChart... After it i do some calculations. FlowChartX repaints only when i have finished my calculations. If i put an VB6 "DoEvents" between Painting and Calculation then it works fine.
I tried FlowChartX.Repaint, but it doesn't helps :-( My problem is, that i can't put an DoEvents there, cause of sideeffects in my framework  :-(

1.) PaintInFlowChartX
2.) DoEvents   'Important, so that FlowChartX can repaint
3.) Havy Calculation

Is there an method, so that i can force the Repaint?

Thanks,
Sascha
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3444
Joined: Oct 19th, 2005
Re: Force painting
Reply #1 - Jul 27th, 2006 at 8:34am
Print Post  
FlowChartX calls the Invalidate WinAPI function when some part of the control must be repainted. This only schedules an WM_PAINT messages in the message queue and does not immediately repaint the control. That's way DoEvents is needed. FCX doesn't have any method that will repaint the control immediately Cry
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint