Page 1 of 1

Moveable Legend Title

Posted: Tue Apr 01, 2014 4:33 pm
by 16558331
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).

Re: Moveable Legend Title

Posted: Wed Apr 02, 2014 10:30 am
by yeray
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.