Legend Position Offset
Posted: Wed Jan 21, 2004 7:24 am
I am trying to adjust the legend property "Position Offset %", which is available in the Teechart property editor as: Chart/Legend/Position/Position Offset %, from within a VC application using the CLegend wrapper class generated by Visual Studio 6.
I believe that the function I need is SetHorizMargin() but this does not have any effect.
Basically, I want to set the legend to top, center. Currently, it gets set to top but has a right offset of 10% when I use the following code:
I'm using Teechart 6.0.0.4. Can someone point me in the right direction?
I believe that the function I need is SetHorizMargin() but this does not have any effect.
Basically, I want to set the legend to top, center. Currently, it gets set to top but has a right offset of 10% when I use the following code:
Code: Select all
m_wndChart.GetLegend().SetAlignment(laTop);
m_wndChart.GetLegend().SetHorizMargin(0);