Page 1 of 1

onMouseMove event and Series in stairs mode detection

Posted: Thu Jun 05, 2008 1:21 pm
by 9341442
Hello,

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).

Image

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;  
Any idea what is wrong?
I need detect series when the mouse is over green line only.

Thanks
Mike

Posted: Thu Jun 05, 2008 1:35 pm
by narcis
Hi Mike,

Yes, this is a known issue (TV52012911) already listed on our bug list to be fixed for next releases.