TeeChart for ActiveX, COM and ASP
-
Jameh2020
- Newbie
- Posts: 25
- Joined: Fri Apr 08, 2005 4:00 am
Post
by Jameh2020 » Wed Jun 20, 2007 12:05 pm
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
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Wed Jun 20, 2007 1:06 pm
Hi Jameh2020,
You can do something as shown
here.
-
Jameh2020
- Newbie
- Posts: 25
- Joined: Fri Apr 08, 2005 4:00 am
Post
by Jameh2020 » Wed Jun 20, 2007 5:31 pm
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
-
Jameh2020
- Newbie
- Posts: 25
- Joined: Fri Apr 08, 2005 4:00 am
Post
by Jameh2020 » Wed Jun 20, 2007 6:07 pm
thanks
i found it my self
Code: Select all
TChart1.Tools.Items(AllControl).asDrawLine.Series = 0
thanks