Page 1 of 1

How shift down TChart ?

Posted: Tue Jan 23, 2007 3:06 pm
by 9089070
In some case I need shift down TChart with it series down. How I Can do it?
Thank You for replies.

Posted: Tue Jan 23, 2007 3:13 pm
by narcis
Hi Nuzur,

Sorry but I don't understand what are you trying to achieve here. Could you please be more specific?

Thanks in advance.

Posted: Tue Jan 23, 2007 3:27 pm
by 9089070
Please read theme "Shift down TeeChart" in conference. There pictures.
Wait for reply.

Posted: Tue Jan 23, 2007 3:37 pm
by narcis
Hi Nuzur,

You can try changing chart's margins, for example:

Code: Select all

Private Sub Command1_Click()
    'TChart1.Panel.MarginUnits = muPixels
    TChart1.Panel.MarginTop = 20
    TChart1.Legend.TopPos = 25
End Sub

Posted: Tue Jan 23, 2007 3:52 pm
by 9089070
Thank You it's what I need!

Posted: Tue Jan 23, 2007 4:01 pm
by 9089070
But in this I have another problem.
I use, for example,

Code: Select all

          m_Chart.GetDC()->TextOut(10,10,"My text");
but it not shown on chart, what I need to do?

Posted: Tue Jan 23, 2007 4:08 pm
by narcis
Hi Nuzur,

You should try using:

Code: Select all

          m_Chart.GetCanvas().TextOut(10,10,"My text"); 
In m_Chart's OnAfterDraw event.

Posted: Wed Jan 24, 2007 9:09 am
by 9089070
Thank You!