TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
Whookie
- Newbie
- Posts: 25
- Joined: Fri Jan 07, 2011 12:00 am
Post
by Whookie » Tue Apr 01, 2014 4:33 pm
I'm missing an option to move the title of a Legend same pixels to the left (I use rounded corners so it looks not that good).
What I did at the moment is:
Code: Select all
Type
TCustomTextShapeClass = Class(TCustomTextShape);
FormCreate:
Chart.Legend.TextSymbolGap := 10;
// Hack:
Chart.Legend.Title.AutoSize := FALSE;
Chart.Legend.Title.Height := 20;
Chart.Legend.Title.Width := 120;
TCustomTextShapeClass(Chart.Legend.Title).ITextOffset := 4;
But it would be nice to have that option without casting...
I tried some other things and I was able the resize the box (even center it) but the text itself stays in the corner (would be cool to use Margins to offset it btw).
-
Attachments
-
- legend.png (7.48 KiB) Viewed 3554 times
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Wed Apr 02, 2014 10:30 am
Hi,
I've added it to the wish list to be implemented in future releases:
http://bugs.teechart.net/show_bug.cgi?id=693
In the meanwhile, feel free to add your mail to the CC list to be automatically notified when an update arrives.