Help - Series MouseLeave/MouseEnter

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Help - Series MouseLeave/MouseEnter

Post by qcrnd » Sun Sep 07, 2008 12:58 pm

Hi
We are using a TeeChart Stack Bar Chart.
When you descend the stack bar from one series in the stack to the next series in the stack the Series.MouseLeave event is not called. However when you eventually leave the stack a Series.MouseLeave event for each series that you entered is raised. (its as if one series is contained within another)

Functionaly we wish to change Cursor whenever the mouse enters any of the series/bars and revert to default Cursor when the mouse is outside the series (bar). Presently due to the above bug we have to keep counter to track the number of series entered and left in order to implement this correctly.

Is there a fix for the above available or is there another mechanism of determining when the mouse is located over a bar or series.

Thanks

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

Post by Narcís » Mon Sep 08, 2008 7:36 am

Hi qcrnd,

I could reproduce the issue here and added it (TF02013383) to the defect list to be enhanced for next releases.

In the meantime you could try using the MouseMove event and clicked method, for example:

Code: Select all

		private int index = -1;

		void tChart1_MouseMove(object sender, MouseEventArgs e)
		{
			for (int i = 0; i < tChart1.Series.Count; i++)
			{
				index = tChart1[i].Clicked(e.X,e.Y);

				if (index!=-1)
				{
					break;
				}
			}
		}
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

qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Thanks.

Post by qcrnd » Tue Sep 09, 2008 8:48 am

your solution is good and it works well.
Thanks

Post Reply