How to customize the annotation tool programmatically (C++)?
Posted: Mon Jan 14, 2008 5:20 pm
Hi,
I'm using version 7.0.1.2 of TeeChart Pro ActiveX control. In one of my projects I'd like set the position, size, font, transparency and other parameters of the annotation tool from within my program. It is possible to customzie these parameters in the editor but how can I customize these parameters in my source code?
For the position I use and but I didn't managed to adjust the width and height of the annotation. I'm missing member functions like or . It should be possible to set these parameters because it works in the editor but how? Could you send me some example code? I'd also like to get example code for setting the font, font size, bevel, tranparency for the annotation tool.
Thanks,
Frank.
I'm using version 7.0.1.2 of TeeChart Pro ActiveX control. In one of my projects I'd like set the position, size, font, transparency and other parameters of the annotation tool from within my program. It is possible to customzie these parameters in the editor but how can I customize these parameters in my source code?
For the position I use
Code: Select all
m_myAnnotation.GetShape().SetLeft(someValue);
Code: Select all
m_myAnnotation.GetShape().SetTop(someValue);
Code: Select all
m_myAnnotation.GetShape().SetWidth(), m_myAnnotation.GetShape().SetHeight()
Code: Select all
m_myAnnotation.GetShape().SetRight(), m_myAnnotation.GetShape().SetBottom()
Thanks,
Frank.