Page 1 of 1

Mouse hover event

Posted: Fri Jan 28, 2005 2:21 pm
by 9080952
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

Posted: Mon Jan 31, 2005 10:35 am
by 9080952
Hi,

I already found a solution for my problem.

Thanks.

Kind regards,
Antoon Koster
Netherlands