Moving Cursor under Program Control
Posted: Sun Apr 24, 2005 6:16 pm
I have a vertical cursor MyCursor (type TCursorTool) and have set the following statements in my program:-
MyCursor:=TCursorTool.Create(Self);
MyCursor.ParentChart:=Chart1;
MyCursor.Series:=Series1;
MyCursor.FollowMouse:=true;
MyCursor.Style:=cssVertical;
MyCursor.Visible:=true;
MyCursor.UseChartRect:=true;
MyCursor.snap:=true;
The manual cursor movement is fine. How does one force the cursor under program control to the last point in Series1. I need to do this so that the cursor highlights the most current data of stock prices.
Will appreciate ideas/suggestions.
Satish
MyCursor:=TCursorTool.Create(Self);
MyCursor.ParentChart:=Chart1;
MyCursor.Series:=Series1;
MyCursor.FollowMouse:=true;
MyCursor.Style:=cssVertical;
MyCursor.Visible:=true;
MyCursor.UseChartRect:=true;
MyCursor.snap:=true;
The manual cursor movement is fine. How does one force the cursor under program control to the last point in Series1. I need to do this so that the cursor highlights the most current data of stock prices.
Will appreciate ideas/suggestions.
Satish