Page 1 of 1

Mouse drag over the Graphs draws a line

Posted: Thu Jun 09, 2005 1:55 pm
by 8120359
Hi

I have a graph drawn. The problem is when the user drags the mouse over the graph a line gets drawn which spoils the graph. Is there any was by which i can avoid this

Regards...

Posted: Thu Jun 09, 2005 2:09 pm
by narcis
Hi HQO,

The defaul chart setting is that if a user clicks a chart with the left mouse button and drags to the right and bottom direction, when the button is released the chart is zoomed. To prevent this behaviour you can use the code above or also block it at the chart editor.

Code: Select all

tChart1.Zoom.Allow=false;

Posted: Thu Jun 09, 2005 2:20 pm
by 8120359
I think I didn't explain it correctly. Even I am using the zoom property. The problem comes when i draw some lines using Steema.TeeChart.Tools.DrawLine method. The lines gets displayed but it becomes movable by user and also user can draw other lines in the graph. I want to avoid this. Please let me know if u have any solution

Posted: Fri Jun 10, 2005 8:28 am
by narcis
Hi HQO,

Ah, ok :D! Now I understood what you want. Then you can disable lines drawing and being selected using:

Code: Select all

			this.drawLine1.EnableDraw=false;
			this.drawLine1.EnableSelect=false;