Page 1 of 1

Extending DrawLine Class..

Posted: Mon Jun 13, 2005 8:05 am
by 8120345
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..

Posted: Mon Jun 13, 2005 10:40 am
by narcis
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;