Legend Symbols without Borders

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Legend Symbols without Borders

Post by TestAlways » Tue Apr 03, 2012 11:04 pm

I have a 2-d chart with a TLineSeries and TBarSeries. If I hide the Legend-Symbol-Borders, the symbol for the TLineSeries is not visible:

Image

There isn't suppose to be a border with the TLineSeries Symbol -- why does this hide the symbol?

I have only attached pas & dfm files as the problem is apparent at design time.

Ed Dressel
Attachments
Legend with Bar and Line.zip
(1.23 KiB) Downloaded 597 times

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

Re: Legend Symbols without Borders

Post by Yeray » Wed Apr 04, 2012 10:08 am

Hi Ed,

The "Border" button in the Legend Symbol Editor (Legend\Symbols tab) is linked to the TLegendSymbol Pen so when you hide it you are hiding the symbol pen. And the symbol for a TLineSeries in 2D is a simple horizontal line.
That's why this button behaves as you've noticed.
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

TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Re: Legend Symbols without Borders

Post by TestAlways » Thu Apr 05, 2012 4:29 pm

But I don't want the border to show for the area series, I need something for the lien series. How do I achieve that?

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

Re: Legend Symbols without Borders

Post by Yeray » Tue Apr 10, 2012 10:57 am

Hi Ed,

I've added to the wish list the possibility to modify this behaviour, making the "Border" button more sophisticated or changing the TLegendSymbol drawing method not to use its pen when a line has to be drawn (TV52016148).

In the meanwhile, you could draw your symbol manually as in the example at "All features\Welcome !\Miscellaneous\Legend\Symbol OnDraw" in the features demo.
Or you could draw the horizontal line (line series symbol) at OnAfterDraw event.
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