Page 1 of 1

TChartGalleryPanel and MouseWheel

Posted: Tue Nov 14, 2006 12:35 am
by 9346985
Hi

I would like to know how to stop ChartGallery Panel from responding to the mouse wheel move event when it has the focus.

It would be fine if the Panel itself scolled vertically, but what happens instead is that the data within the selected gallery chart on the panel scrolls vertically. So the lines or bars or whatever scroll up and down - something that should not happen.

You can see this effect in your demos, such as the TeeChart PRO 7...What's new demo.

I have true setting TeeUseMouseWheel to False, but that doesn't help. Anyway, I want to use TCHart and TTeeInspector on the same form.

Thanks, David

Posted: Tue Nov 21, 2006 12:28 pm
by Pep
Hi David,

using the following code should stop the mousewheel :

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  With ChartGalleryPanel1 do
  begin
    NumCols:=2;
    NumRows:=3;
    TeeUseMouseWheel:=false;
    CreateChartList([TLineSeries,TBarSeries,TAreaSeries,TPieSeries]);
  end;
end;