10-18-2011 04:44 AM
10-19-2011 04:43 AM
Hi again,
1st. Sorry for the bad layout of my message, (it seems unformated because I had no javascript activated in my browser when I wrote it.?!)
2nd. Is the answer to my question so obvious that noone respondes, or does noone know? (Labview Developer, are you listening?)
Best regards,
Rainer
10-20-2011 08:58 AM
Hi Balze,
unfortunately there is no double-click event that could be handled by the LabVIEW event structure directly.
Therefore I programmed a little "double click.vi" (see attachment) that counts the number of clicks you did _whereever_ on the front panel control. If you click on the control one time it will display a dialog that says "One Click". If you click 2 times it will display a dialog that says "Two Clicks". If you click 3 times it will do nothing. You could add a case for that if you want to.
I used an event structure to increment every time the mouse button was clicked. If the user does not click anything within the 200ms timeout then it will enter the case structure and see how many times the mouse was clicked. It then resets the count to zero.
Hope that you can work-around your project using this simple idea!
Best regards,
Benjamin
10-20-2011 09:55 AM
Benjamin,
thank you for your reply.
As every "double click able" control is overlayed with a (sigle column, single row) listbox, there s a "double click event I can directly access!
As I mentioned, I've got no problem in getting a double click event, but the LV behaviour differs from the OS behaviour.
A double click event only occurs, when I hit the same spot in LV!
I had a workaround like yours before I found, that the listbox has a double click event.
I rewrote the software and everything works fine while testing with a mouse. Now I've got a touchpanel for testing and I notice that LV handles a double click internal (does not use the OS event!?)
So, thanks, but it doesn't help me a lot.
Best regards,
Balze
10-27-2011 06:59 AM
Hi Balze,
I found another method to catch double click events: Maybe this method works for your touchpanel mouse driver?
See here: How Do I Register a Double-Click Event on a Control or Indicator in LabVIEW?
I furthmore made up my mind a bit and had the idea that you could display the user help on single-click (or mouse-over?) in a string element in some corner of your VI? See the idea (double click advanced.vi) in the attachment.
Best regards,
Benjamin
06-21-2012 04:11 AM
Hi,
I have exactly the same issue. Everything is fine with a mouse but when using the touch panel I need to be very precise to get a double click. Have you found any solution?
Thanks,
Boris