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:
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
Legend Symbols without Borders
-
- Advanced
- Posts: 228
- Joined: Tue Aug 28, 2007 12:00 am
- Location: Oregon, USA
Legend Symbols without Borders
- Attachments
-
- Legend with Bar and Line.zip
- (1.23 KiB) Downloaded 597 times
Re: Legend Symbols without Borders
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Advanced
- Posts: 228
- Joined: Tue Aug 28, 2007 12:00 am
- Location: Oregon, USA
Re: Legend Symbols without Borders
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
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |