AxisScroll Tool triggers OnZoom

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
rvc
Newbie
Newbie
Posts: 12
Joined: Mon Nov 14, 2011 12:00 am

AxisScroll Tool triggers OnZoom

Post by rvc » Thu Jan 12, 2012 2:06 pm

Hello,

I added an AxisScroll tool for the bottom Axis, but this triggers Onzoom event. Is this meant to be? I would expect OnScroll to be triggered instead...

Regards, Ronald

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: AxisScroll Tool triggers OnZoom

Post by Yeray » Fri Jan 13, 2012 9:34 am

Hi Ronald,

Are you using the latest version? The following example works as expected for me here.
May I be missing some relevant setting?

Code: Select all

uses TeeTools, Series;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;
  Chart1.AddSeries(TLineSeries).FillSampleValues;
  (Chart1.Tools.Add(TAxisScrollTool) as TAxisScrollTool).Axis:=Chart1.Axes.Bottom;
end;

procedure TForm1.Chart1Zoom(Sender: TObject);
begin
  ShowMessage('OnZoom');
end;

procedure TForm1.Chart1Scroll(Sender: TObject);
begin
  ShowMessage('OnScroll');
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply