Page 1 of 1

Back Image Custom Position

Posted: Wed Feb 25, 2009 10:41 pm
by 9532498
How can I set the Custom Image Position (Boolean variable) to True ? What property of CTChart should I set? I'm using Visual C++? I also need to set the Custom Position (left and Top) via the code.

Thanks.

Posted: Fri Feb 27, 2009 9:57 am
by yeray
Hi nbp,

Have you tried doing something like this?

Code: Select all

m_Chart1.GetPanel().GetBackImage().SetMode(3);
m_Chart1.GetPanel().GetBackImage().SetLeft(100);
m_Chart1.GetPanel().GetBackImage().SetTop(100);

Posted: Fri Feb 27, 2009 9:55 pm
by 9532498
In my version of TChart (v 7) I don't have the GetBackImage() method. I just have GetBackImageMode();

Posted: Mon Mar 02, 2009 11:05 am
by yeray
Hi nbp,

Yes, these properties are available from TeeChart v8. If you want to load an image in v7 I think you'll have to use TChart1.Canvas.Draw method at OnBeforeDrawChart event.