ChartPageNavigator

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jim
Newbie
Newbie
Posts: 8
Joined: Fri Nov 15, 2002 12:00 am

ChartPageNavigator

Post by Jim » Sat Dec 06, 2003 5:41 pm

Hi,

Any way to disable this control after a manual scroll. I mean if you click and drag or zoom the control appears to be active but doesn't function. One must click and drag to un-zoom before control will function.

Thanks

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Sun Dec 07, 2003 8:23 pm

Hi, Jim.

Perhaps you could use the followig code in the TChart.OnAfterDraw event :

Code: Select all

procedure TForm1.Chart1AfterDraw(Sender: TObject);
begin
  With Sender as TCustomChart do
    if Axes.Bottom.Automatic = true then MaxPointsPerPage := 5
    else MaxPointsPerPage := 0;
end;
This way yon can disable the page navigator if for any reason zooming/scrolling is used.
Marjan Slatinek,
http://www.steema.com

Post Reply