OnClickSeries triggers on start zooming

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
CTgmbh
Newbie
Newbie
Posts: 3
Joined: Tue Sep 12, 2006 12:00 am

OnClickSeries triggers on start zooming

Post by CTgmbh » Tue Jul 21, 2009 1:26 pm

Hi,
we're using TeeChart 7.08 on BDS2006 (Delphi). We got a Chart with a OnClickSeries event. The user also can use zoom using the Shift key (Chart.Zoom.KeyShift = [ssShift]). But when the user starts zooming on a series the OnClickSeries event is triggered. I think TeeChart should zoom whereever the cursor is when you using the KeyShift property. Is this a bug? Is there a way to fix that?

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: OnClickSeries triggers on start zooming

Post by Yeray » Tue Jul 21, 2009 2:40 pm

Hi CTgmbh,

I'm not able to reproduce the problem if I understood it well. I've added a line series to a chart and the following code:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Zoom.KeyShift := [ssShift];
end;

procedure TForm1.Series1Click(Sender: TChartSeries; ValueIndex: Integer;
  Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  Chart1.Title.Text.Text := 'series clicked!';
end;

procedure TForm1.Chart1Zoom(Sender: TObject);
begin
  Chart1.Title.Text.Text := 'Chart zoomed!';
end;

procedure TForm1.Chart1UndoZoom(Sender: TObject);
begin
  Chart1.Title.Text.Text := '';
end;

procedure TForm1.Chart1Click(Sender: TObject);
begin
  Chart1.Title.Text.Text := '';
end;
And I can zoom using shift key wherever I start to draw the Zoom rectangle.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply