Problem with Cursor Tool?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Problem with Cursor Tool?

Post by Dave » Wed Apr 15, 2009 10:59 am

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.

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

Post by Narcís » Wed Apr 15, 2009 2:27 pm

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.
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

Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Post by Dave » Thu Apr 16, 2009 12:18 pm

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.

Post Reply