Check if chart is panned?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
flair58
Newbie
Newbie
Posts: 3
Joined: Mon Mar 08, 2021 12:00 am

Check if chart is panned?

Post by flair58 » Wed Jun 02, 2021 12:17 pm

In my application the x-axis (date/time) is adjusted automatically by a timer.
In case the user has panned or zoomed the chart this adjustment should be suppressed.
Zoom can be checked by "Chart.Zoomed", but how can I check if the chart is panned?

Regards
Flair58

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

Re: Check if chart is panned?

Post by Yeray » Thu Jun 03, 2021 6:22 am

Hello,

There's the OnScroll event:

Code: Select all

  Chart1.OnScroll:=ChartScroll;

Code: Select all

procedure TForm1.ChartScroll(Sender: TObject);
begin
  Caption:='Scrolling...';
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