Fastline error?
Posted: Thu Jul 20, 2006 6:33 am
Hi,
I am drawing a fastline from right to left of the chart, i.e., AddRealTime(x,y,"",RGB(255,0,0)); with x gradually decreases. However, the series can't be correctly displayed and sometimes it could refresh but sometimes it couldn't. I tracked everything and could find what's wrong. then accidently I changed the width of the fastline with
m_chart1.Series(0).GetPen().SetWidth(2);
and it worked! after I chagned the line width back to 1 or comment this line to use default line width, the problem appears again. Any suggestion how to solve this problem if I have to use default line width?
Thank you very much!
David
I am drawing a fastline from right to left of the chart, i.e., AddRealTime(x,y,"",RGB(255,0,0)); with x gradually decreases. However, the series can't be correctly displayed and sometimes it could refresh but sometimes it couldn't. I tracked everything and could find what's wrong. then accidently I changed the width of the fastline with
m_chart1.Series(0).GetPen().SetWidth(2);
and it worked! after I chagned the line width back to 1 or comment this line to use default line width, the problem appears again. Any suggestion how to solve this problem if I have to use default line width?
Thank you very much!
David