Page 1 of 1

Problem with Cursor Tool?

Posted: Wed Apr 15, 2009 10:59 am
by 13050364
This is a general question regarding the cursor tool.

Ive a cursor tool attached to chart. When the chart is made invisible then made visible again the cursor tool has disappeared. Even when I do

cursor1.Active = true

it does not reappear.


Actually to be totally accurate Ive created a control that contains a TeeChart. Ive then added this control to a Window. And then programmatically added the cursor tool. It works fine until I make the control invisible. Then when I make it visible again the cursor tool has disappeared and I cant make it visible again.

Posted: Wed Apr 15, 2009 2:27 pm
by narcis
Hello Dave,

I'm not able to reproduce the issue here using this code:

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private void InitializeChart()
		{
			Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
			line1.FillSampleValues();

			Steema.TeeChart.Tools.CursorTool cursor1 = new Steema.TeeChart.Tools.CursorTool(tChart1.Chart);

			this.Click += new EventHandler(Form1_Click);
		}

		void Form1_Click(object sender, EventArgs e)
		{
			tChart1.Visible = !tChart1.Visible;
		}
Could you please modify it or send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

Posted: Thu Apr 16, 2009 12:18 pm
by 13050364
Narcis
Thanks. I'll have another shot and if I cant fix I'll send you some code. I suspect it may have something to do with the TeeChart being included within a control.