Page 1 of 1

Event for Teechart Drag

Posted: Thu Apr 05, 2007 6:30 am
by 9231397
I have about 30 Tcharts on a form each with several Tlineseries plotting as time-series. (TChart 7.07, Delphi 6 Pro, Win XP). The t.series can contain several thousand points, and I and provide the user the option to lock zooming so that a zoom on chart1 is reflected across all charts on the form. I use the

procedure TLineplotfrm.Chart1Zoom(Sender: TObject);

event to pass the zoom parameters across all charts on the form.

I would liketo do the same thing for the right-mouse button drag event (standard Tchart behaviour I think), where the user has the ability to right click the chart and drag the series around the chart area. I'd like to reflect this across all charts on the form. Could someone tell me which event to use to trap this please?

thanks
Sean

Posted: Thu Apr 05, 2007 10:26 am
by narcis
Hi Sean,

Yes, this is the OnScroll event, for example:

Code: Select all

procedure TForm1.Chart1Scroll(Sender: TObject);