Questions regarding TCursorTool
Posted: Fri Feb 17, 2006 8:23 pm
Hi,
I am using TChartPro 7 and BCB 5 to plot electrophysiology data acquired
from the analog-to-digital acquisition board. The data are plotted as
several fixed-length sweeps with TChartFastLineSeries (it is a lot of data
points). I'm using several vertical/horizontal cursors to restrict the area
for data analysis. And I have got several questions regarding the
TCursorTool.
Could you tell me if it is possible to have a text identifier (like a label
box) for each cursor in the Chat area, so I can see which cursor is which.
The problem is I can have up to 10 vertical cursors and they are working in
pairs (cursors: 1-2, 3-4 and so on) to restrict the area for data analysis.
It is really hard to keep track which cursor is which.
I tried to associate TAnotationTool/TRectangleTool with TCursorTool, but it
is working awful. I add TAnotationTool/TRectangleTool in the ChartEditor and
make it 'stick' to the particular TCursorTool with Left and Top properties.
Then I wrote the OnChange event to keep changing their position when I'm
moving Cursor, so that they would stay together. However, when I'm moving
Cursor the text box of TAnotationTool/TRectangleTool flickering, slow down
the movement of Cursor and not keeping up with Cursor movement. Same thing
is happening if I add the TLabel to the TChart window. But if I put TLabel
out of TChart window, it is working fine (no slow down).
So,I would really like to know if there is any way around to have the text
box or label in the TChart window and move it easily together with
TCursorTool.
I also need to know exactly what TCursotTool.SnapToPoint() return. Does it
return the index (count starts from 0) or the point number (count starts
from 1) in the data array (TChartSeries). As I think, it return the value
index, but maybe I'm wrong. Could you make it clear for me?
Thank you in advance,
Evgeny
I am using TChartPro 7 and BCB 5 to plot electrophysiology data acquired
from the analog-to-digital acquisition board. The data are plotted as
several fixed-length sweeps with TChartFastLineSeries (it is a lot of data
points). I'm using several vertical/horizontal cursors to restrict the area
for data analysis. And I have got several questions regarding the
TCursorTool.
Could you tell me if it is possible to have a text identifier (like a label
box) for each cursor in the Chat area, so I can see which cursor is which.
The problem is I can have up to 10 vertical cursors and they are working in
pairs (cursors: 1-2, 3-4 and so on) to restrict the area for data analysis.
It is really hard to keep track which cursor is which.
I tried to associate TAnotationTool/TRectangleTool with TCursorTool, but it
is working awful. I add TAnotationTool/TRectangleTool in the ChartEditor and
make it 'stick' to the particular TCursorTool with Left and Top properties.
Then I wrote the OnChange event to keep changing their position when I'm
moving Cursor, so that they would stay together. However, when I'm moving
Cursor the text box of TAnotationTool/TRectangleTool flickering, slow down
the movement of Cursor and not keeping up with Cursor movement. Same thing
is happening if I add the TLabel to the TChart window. But if I put TLabel
out of TChart window, it is working fine (no slow down).
So,I would really like to know if there is any way around to have the text
box or label in the TChart window and move it easily together with
TCursorTool.
I also need to know exactly what TCursotTool.SnapToPoint() return. Does it
return the index (count starts from 0) or the point number (count starts
from 1) in the data array (TChartSeries). As I think, it return the value
index, but maybe I'm wrong. Could you make it clear for me?
Thank you in advance,
Evgeny