Hi,
On a control, I need a click to switch display between 2 values, and a double click to enter a new value for the value actually shown.
I wrote something like that :
int CVICALLBACK OkCallback (int panel, int control, int event, void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_COMMIT:
// do something
break;
case EVENT_RIGHT_CLICK:
// If value A displayed, display value B else display value A
break;
case EVENT_RIGHT_DOUBLE_CLICK:
// If value A displayed, enter new value A else enter new value B
break;
}
return 0;
}
The problem is that if I double click on the control, the callback is called twice. A fisrt time with EVENT_RIGHT_CLICK and a second time with EVENT_RIGHT_DOUBLE_CLICK event
How can I do ?
I tried to replace EVENT_RIGHT_CLICK with EVENT_MOUSE_WHEEL_SCROLL but when I scroll the wheel this event is not sent. Why ?
Regards.