border color/width of teepolygon in mapseries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ditto
Newbie
Newbie
Posts: 6
Joined: Wed Aug 10, 2005 4:00 am

border color/width of teepolygon in mapseries

Post by ditto » Tue Feb 07, 2006 7:19 pm

I am successfully adding polygons to a map series at run-time in the same way as in your example code. I can set the color of the inside of the polygons at run-time but not the border color. The design-time editor allows the changing of the individual polygon border properties (color,width,style) but there does not appear to be run-time access to these properties. I tried changing the polygon Pen properties but this doesn't do anything. What am I missing?

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

Post by Pep » Mon Feb 13, 2006 8:55 am

Hi,

you can do:

Code: Select all

Series1.Pen.Visible:=false;
Series1.Polygon[0].ParentPen:=false;
Series1.Polygon[0].Pen.Color:=clyellow;
Series1.Polygon[1].ParentPen:=false;
Series1.Polygon[1].Pen.Color:=clred;

Post Reply