Mouse hover event

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Anthony
Newbie
Newbie
Posts: 35
Joined: Wed Feb 25, 2004 5:00 am
Location: WL| Delft Hydraulics, Holland
Contact:

Mouse hover event

Post by Anthony » Fri Jan 28, 2005 2:21 pm

Hi,

As soon as the user hovers over the axes I want to display some information (call out) to inform the user how to customize the axis scaling.

For this purpose I use the Mouse Hover event of TeeChart, and in the call back function I check if the event was sent from one of the axes. My axes are availabe from the array *customAxis[noPars]*.

The code looks like:
private void tChart1_MouseHover(object sender, System.EventArgs e)
{
bool axisFound = false;
for (int iAxis=0;iAxis<noPars;iAxis++)
{
axisFound = (customAxis[iAxis] == sender);
if (axisFound) break;
}
(...)
}

Even if I my mouse is hovering right over the axes, it always returns with false (on variable axisFound).

Any idea what might be wrong.

Thanks a lot.

Best regards,
Antoon
WL|Delft Hydraulics
Netherlands

Anthony
Newbie
Newbie
Posts: 35
Joined: Wed Feb 25, 2004 5:00 am
Location: WL| Delft Hydraulics, Holland
Contact:

Post by Anthony » Mon Jan 31, 2005 10:35 am

Hi,

I already found a solution for my problem.

Thanks.

Kind regards,
Antoon Koster
Netherlands

Post Reply