SOLVED Urgent: Identify a Point in a pointseries after...
Posted: Tue Nov 25, 2008 12:55 pm
Scenario:
I have a 2D pointseries with x/y coordinates.
Each point has an index on which I identify him. Like.
The problem now is, I can move this points on the chart by dragging them.
Eachtime I move the point I changed the coords like this way:
And the same for the yvalue.
After changing this TChart sorts the points in a manner that the indexes are changing. OldIndex isn't Oldindex anymore after changing x or Y Values.
How do I get the new Index for my old point ?
Any Help welcome !
Thanks in advance.
I have a 2D pointseries with x/y coordinates.
Each point has an index on which I identify him. Like
Code: Select all
series.XValues[ Index ]
The problem now is, I can move this points on the chart by dragging them.
Eachtime I move the point I changed the coords like this way:
Code: Select all
series.XValues[ OldIndex ] := newX;
And the same for the yvalue.
After changing this TChart sorts the points in a manner that the indexes are changing. OldIndex isn't Oldindex anymore after changing x or Y Values.
How do I get the new Index for my old point ?
Any Help welcome !
Thanks in advance.