Extending DrawLine Class..

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
glikoz
Newbie
Newbie
Posts: 34
Joined: Mon May 05, 2003 4:00 am

Extending DrawLine Class..

Post by glikoz » Mon Jun 13, 2005 8:05 am

Do you suggest to extend DrawLine class for make suchlike fibonacci,gann trendlines ..
We have two type analysis ..

a) Drag-Drop based series..(Drag-drop mouse on chart and series are added)
b) Non-Drag-Drop based series ( You can only use menus for adding it)

Which method do you suggest for a) situation ..And i have one extra problem for DrawLine :
It doesnt have onclick event ...How could i handle mouse_rightClick on DrawLine object..

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jun 13, 2005 10:40 am

Hi glikoz,

You should search for examples on how to Drag and Drop in .NET. Then you will only have to add series using tChart1.Series.Add method.

DrawLine tool doesn't have OnClick event but has OnSelect and regarding on mouse button, you should use:

Code: Select all

drawLine1.Button = System.Windows.Forms.MouseButtons.Right; 
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply