Unable to get the MouseDoubleClick event to fire

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Mike Jones
Advanced
Posts: 192
Joined: Thu Feb 01, 2007 12:00 am
Contact:

Unable to get the MouseDoubleClick event to fire

Post by Mike Jones » Thu May 29, 2008 11:46 pm

If I have a DragPoint tool in my chart. I am unable to get a MouseDoubleClick event to fire.

When I remove the DragPoint tool this event works fine.

Do you have any suggestions how to work around this?

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

Post by Narcís » Fri May 30, 2008 9:06 am

Hi Mike,

Chart's DoubleClick event works fine for me here using latest TeeChart for .NET v3 release available at the client area with code below. Which TeeChart version are you using? Does the code example work fine at your end? Could you please modify it so that we can reproduce the issue here?

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}
				
		private void InitializeChart()
		{
			Steema.TeeChart.Styles.Points points1 = new Steema.TeeChart.Styles.Points(tChart1.Chart);
			points1.FillSampleValues();

			Steema.TeeChart.Tools.DragPoint dragPoint1 = new Steema.TeeChart.Tools.DragPoint(tChart1.Chart);
			dragPoint1.Series = points1;

			tChart1.DoubleClick += new EventHandler(tChart1_DoubleClick);
		}

		void tChart1_DoubleClick(object sender, EventArgs e)
		{
			MessageBox.Show("Double Click!");
		}		
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

Post Reply