Can individual DrawLineItems be selectable or not ..
Posted: Wed Jul 21, 2010 6:06 am
Greetings,
I have a DrawLine that is made up of 4 drawlineItems .. two of these I want to be selectable and two I dont want to be selectable .
Is there a way to make DrawLineItems that are grouped together in a Drawline programatically selectable.
As I wish the user to be able to drag two of the lines and the other two I shall programatically position them using the DragLine Eventhandler.
Below is how I am creating this DrawLine.
I have a DrawLine that is made up of 4 drawlineItems .. two of these I want to be selectable and two I dont want to be selectable .
Is there a way to make DrawLineItems that are grouped together in a Drawline programatically selectable.
As I wish the user to be able to drag two of the lines and the other two I shall programatically position them using the DragLine Eventhandler.
Below is how I am creating this DrawLine.
Code: Select all
private void btn_drawLine_Click(object sender, EventArgs e)
{
drawline1 = new Steema.TeeChart.Tools.DrawLine(tChart1.Chart);
drawline1.EnableDraw = true;
drawline1.NewLine +=new DrawLineEventHandler(drawline1_NewLine);
drawline1.Select += new DrawLineEventHandler(drawline1_Select);
drawline1.DragLine += new DrawLineEventHandler(drawline1_DragLine);
drawline1.EnableSelect = true;
drawline1.Pen.Width = 2;
I1 = new DrawLineItem(drawline1);
I1.Pen.Color = Color.Red;
I1.Pen.Width = 2;
I2 = new DrawLineItem(drawline1);
I2.Pen.Color = Color.Blue;
I2.Pen.Width = 2;
I3 = new DrawLineItem(drawline1);
I3.Pen.Color = Color.MediumPurple;
I3.Pen.Width = 2;
}