Moveable Legend Title
Posted: 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:
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).
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;
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).