Map Series and Zoom

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Peeryog
Newbie
Newbie
Posts: 1
Joined: Thu Apr 28, 2022 12:00 am

Map Series and Zoom

Post by Peeryog » Mon Jun 06, 2022 10:17 pm

Just getting used to the map series and I hope there is a simple answer,
The zoom and scroll function work great, until I add some code to the OnSeriesClick event. Then that code takes precedence and the zoom function fails to start. This would be on a map , say, and the user is clicking on a state or province and in this case it is desired that clicking anywhere in the polygon that represents the state will perform the OnSeriesClick event.

Is this the behaviour I should expect to see?

Best Regards

Peter

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

Re: Map Series and Zoom

Post by Yeray » Wed Jun 15, 2022 1:24 pm

Hello Peter,

Indeed, the event is capturing the action and not propagating the event.
If you want to change this behaviour, you can set CancelMouse property to False:

Code: Select all

procedure TForm1.Chart1ClickSeries(Sender: TCustomChart; Series: TChartSeries;
  ValueIndex: Integer; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  Sender.CancelMouse:=False;
end;
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