LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

No EVENT_LEFT_CLICK_UP in LabWindows/CVI 7.0

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?

Message 1 of 2
(2,836 Views)

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;


 

0 Kudos
Message 2 of 2
(2,826 Views)