I've a problem with $subj in my project.
I've series in stairs mode - stairs = TRUE (green line on the picture). When I move mouse to the point p1, no series is detected. But when I move mouse to the point p2, series is detected as though it were in basic mode - stairs = FALSE (dotted orange line).
Code: Select all
--Data loading--
procedure LoadData;
var Serie: TChartSeries;
...
begin
...
Serie := Chart.AddSeries(TFastLineSeries.Create(nil));
...
if IsBinaryOrAlarmChannel(ChanProfile) then
(Serie as TFastLineSeries).Stairs := TRUE;
...
end;
--series detection (onMouseMove event)--
ChartMouseMove(Sender: TObject; Shift: TShiftState; X,Y: Integer);
var Part: TChartClickedPart;
...
begin
...
chMainChart.CalcClickedPart(TeePoint(X,Y),Part);
...
Case Part.Part of
...
cpSeries: {do something}
...
end;
...
end;
I need detect series when the mouse is over green line only.
Thanks
Mike