Disable "Scroll"-function in TChartGalleryPanel

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Johan Ingemansson
Newbie
Newbie
Posts: 59
Joined: Fri May 28, 2004 4:00 am
Location: Sweden

Disable "Scroll"-function in TChartGalleryPanel

Post by Johan Ingemansson » Mon Sep 27, 2004 11:34 am

Hi,

If I select on Chart in my TChartGalleryPanel, and then scroll(up) the y-axis will change and my serie will start to move up as well. Does anyone which property I should set to disable this function?

Best Regards,

Johan Ingemansson

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Sep 27, 2004 4:59 pm

Hi Johan,

you can use the following code to disable this :

Code: Select all


for i := 0 to ChartGalleryPanel.Charts.Count - 1 do
  begin
    ChartGalleryPanel.Charts.Items[i].AllowZoom := False;
    ChartGalleryPanel.Charts.Items[i].AllowPanning := pmNone;
  end;
TeeUseMouseWheel:= False;

Post Reply