When I add a new series at run-time, the legend box is resized to accomodate the wider text. That's great. This works perfectly when I use the default font.
However, the font in my legend is Lucida Sans Typewriter, and it appears that the font size is ignored when calculating the size of the legend box.
I tried fixing this by manually setting the ShapeBounds when I add the series. However, it looks like I can read the size, but I can not set it. The CTeeRect structure provides no Set... routines.
I am using TeeChart Pro v7.0.0.8 for VC++
Code: Select all
CLegend legend = chartData.get_Legend();
CTeeRect rect = legend.GetShapeBounds();
long right = rect.GetRight();
// rect.SetRight(right + xxx); Can't do this!
Thank you,
Jennifer Britt
Campbell Scientific