onMouseMove event and Series in stairs mode detection

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mike
Newbie
Newbie
Posts: 6
Joined: Tue Mar 29, 2005 5:00 am

onMouseMove event and Series in stairs mode detection

Post by Mike » Thu Jun 05, 2008 1:21 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 05, 2008 1:35 pm

Hi Mike,

Yes, this is a known issue (TV52012911) already listed on our bug list to be fixed for next releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply