Page 1 of 1

Minimized Darvas Not Working

Posted: Fri Feb 22, 2008 9:36 pm
by 15047425
I have an application which is left running on a computer continuously. On a timed bases (every 15 to 30 minutes), it automatically downloads current stocks pricing information from the web. It then uses this information to rebuild various charts, one being a darvas chart. It then looks at the chart via tChart.series(0).asDarvas.NumBoxes & loops the boxes with
WITH tchart
lnR = .Axis.Bottom.CalcPosPoint(.series(0).asDarvas.BoxesRect(li).Right)
lnL = ..Axis.Bottom.CalcPosPoint(.series(0).asDarvas.BoxesRect(li).Left)
lnT = ..Axis.Bottom.CalcPosPoint(.series(0).asDarvas.BoxesRect(li).Top)
lnB = ..Axis.Bottom.CalcPosPoint(.series(0).asDarvas.BoxesRect(li).Bottom)
ENDWITH

Everything works fine if the application is not minimized, but when left running but minimized - it no longer retrieves any Darvas information. All other information is good though (pricing, bollinger bands on the Darvas, etc)

Whey is this or more importantly how can I get this to work minimized?

I am using ActiveX v8.0.0.2.10507 with VFP

Posted: Sat Feb 23, 2008 6:01 pm
by 15047425
I figured it out - I just needed to add an internal repaint command:
Tchart.Environment.InternalRepaint()

Works fine now :P