Page 1 of 1

question about line tool

Posted: Wed Jun 20, 2007 12:05 pm
by 9526591
i need to draw in run time line from line tool

i now how to add the line

Code: Select all

TChart1.Tools.Add tcDrawLine
TChart1.Tools.Items(AllControl).asDrawLine.Series = 0
TChart1.Tools.Items(AllControl).asDrawLine.EnableDraw = True
 TChart1.Tools.Items(AllControl).asDrawLine.EnableSelect = True
but i do not now how to draw it form point1 to point2

thanks

Posted: Wed Jun 20, 2007 1:06 pm
by narcis
Hi Jameh2020,

You can do something as shown here.

Posted: Wed Jun 20, 2007 5:31 pm
by 9526591
thanks
but i still have a problem

i add in desgin mode custom axis in left side

when i draw a line , i need to draw it acoording to my custom axis

but what happen tchart draw it acoording to defualt left axis

can you help me
thanks

Posted: Wed Jun 20, 2007 6:07 pm
by 9526591
thanks
i found it my self

Code: Select all

TChart1.Tools.Items(AllControl).asDrawLine.Series = 0
thanks