bug in OnDragPointToolDragPoint
Posted: Thu Nov 02, 2006 4:01 pm
Dear support,
In my application, I used a horizontal series and one drag point tool. When the values (x axis values) change the drag point tool works fine. But when the values are constant, the chart becomes erratic when I drag one point with the following code. Apprently the teechart code found the wrong index.
for(i=0;i<10;i++)
{
m_Chart1.Series(0).Add(1000,"",clTeeColor);
}
void aaa::OnOnDragPointToolDragPointTchart1(long Index)
{
// TODO: Add your control notification handler code here
double Data=m_Chart1.Series(0).GetPointValue(Index);
if(Data<0)
m_Chart1.Series(0).SetPointValue(Index,0);
//GetPointValue(Index);
}
if I change the value from 1000 to 1, the code seems works fine.
Thanks,
hh
In my application, I used a horizontal series and one drag point tool. When the values (x axis values) change the drag point tool works fine. But when the values are constant, the chart becomes erratic when I drag one point with the following code. Apprently the teechart code found the wrong index.
for(i=0;i<10;i++)
{
m_Chart1.Series(0).Add(1000,"",clTeeColor);
}
void aaa::OnOnDragPointToolDragPointTchart1(long Index)
{
// TODO: Add your control notification handler code here
double Data=m_Chart1.Series(0).GetPointValue(Index);
if(Data<0)
m_Chart1.Series(0).SetPointValue(Index,0);
//GetPointValue(Index);
}
if I change the value from 1000 to 1, the code seems works fine.
Thanks,
hh