Mouse hover event
Posted: 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
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