I want to use custom legend, my code is:
But the result is: legend.png
Code: Select all
CLegend legend = (CLegend)m_tchart.get_Legend(); legend.put_Visible(TRUE); legend.put_CustomPosition(TRUE); legend.put_LeftPercent(80); legend.put_TopPercent(5);
I open the edit, found "percent" is not checked. as attached file: edit.png.
can you help me to find what's wrong whith my code?