TChartGalleryPanel and MouseWheel

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
dmisland
Newbie
Newbie
Posts: 11
Joined: Wed Jul 26, 2006 12:00 am

TChartGalleryPanel and MouseWheel

Post by dmisland » Tue Nov 14, 2006 12:35 am

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

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

Post by Pep » Tue Nov 21, 2006 12:28 pm

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;

Post Reply