//Bug Report [+solution] TMapSeries.onClick

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
odissey1
Newbie
Newbie
Posts: 35
Joined: Thu Oct 23, 2003 4:00 am

//Bug Report [+solution] TMapSeries.onClick

Post by odissey1 » Tue Dec 09, 2008 2:59 am

I am working with TMapSeries drawing numerous balloons on the chart. I noticed that if some of the top shapes are made invisible, then they are still clickable, which is wrong, as they obstruct underlying shape objects.

Please find below corrected code for Clicked(..) function. Please note that while this code is for TeeChart 7.12, TC8.x still has this bug (can see it in Tee8new.exe).

regards,
odissey1

Code: Select all


// Tee Bug with TMapSeries (clicked invisible polygons)
// TeeChart 7.12->


unit TeeMapSeries;
...

function TMapSeries.Clicked(x, y: Integer): Integer;
var tmpClip : Boolean;
    tmpRect : TRect;

  function IsShapeVisible(Shape:TPolygonSeries):Boolean;
  var tmp  : Integer;
      tmp2 : Integer;
  begin

//correction->
//or:    if not Shape.Polygon.Points.Visible then begin
    if not Shape.Visible then begin
       result:=False;
       Exit;
    end;
//<-correction

    if tmpClip then
     ...
     ...
     ...
    end
    else result:=True;
end;
  

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Dec 09, 2008 12:24 pm

Hi odissey,

Thanks for your suggestion. I've added it to the wish-list to be considered for inclusion in future releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply