Page 1 of 1

Legend Symbols without Borders

Posted: Tue Apr 03, 2012 11:04 pm
by 10546565
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

Re: Legend Symbols without Borders

Posted: Wed Apr 04, 2012 10:08 am
by yeray
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.

Re: Legend Symbols without Borders

Posted: Thu Apr 05, 2012 4:29 pm
by 10546565
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?

Re: Legend Symbols without Borders

Posted: Tue Apr 10, 2012 10:57 am
by yeray
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.