Page 1 of 1

Disable "Scroll"-function in TChartGalleryPanel

Posted: Mon Sep 27, 2004 11:34 am
by 9232649
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

Posted: Mon Sep 27, 2004 4:59 pm
by Pep
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;