01-19-2011 12:34 PM
In LabWindows/CVI 9.0 there is EVENT_LEFT_CLICK_UP, but in LabWindows/CVI 7.0 there is NO EVENT_LEFT_CLICK_UP :mansad: I tried to use the number defined in the userint.h of 9.0 but that doesn't work. I would really perfere to use the EVENT_LEFT_CLICK_UP instead of double click event. is there a better work around?
01-19-2011 04:32 PM
I believe you could do something like this by utilizing the EVENT_LEFT_CLICK modifier, and then waiting for the user to release the mouse button. I know this is possible in 7.1 so I believe it'll work in 7.0.
case EVENT_LEFT_CLICK:
do
{
GetGlobalMouseState (&panel, &xcoord, &ycoord, &leftbtn, &rightbtn, &keys);
}while(leftbtn == 1);//wait for user to release mouse button
//code that should be executed when the user releases the left mouse button
break;