LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV8.5.1f4 Double Click handled from OS or from LabVIEW? (Touchpanel problem)

Hi folks, I've got a problem with my program and a touchpanel. Some details before I ask my question. I developed a software that is controlled by a touchscreen (It's an ADS-TEC OPC7022 Industriell PC with touchpanel included.). The touchpanel acts like a mouse. To be able to use the bubblehelp within this software, every control has to be activated by a double click. Single click drops the mouse-pointer on the control and activates the bubblehelp. The usage of the touchpanel can be configured like mousesettings. There is on point in this configuration, that lets me choose the "size" of the double click area. This is needed, because you can't hit the same spot with a finger on a touchpanel as if you're using a mouse. This works perfekt, as long as I double click anything under OS control (e.g.: folders, files, ...) But it doesn't work, at the controls inside my LV application. (Double Click only works if I hit (nearly?) the same spot (with a pencil)) Does anyone know if the double click event (its properties particularly the size of the double click area) are controled from LabVIEW itself? Is there something I can "tweak" ? Thanks in advance ! Best regards, Balze
0 Kudos
Message 1 of 6
(3,206 Views)

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

0 Kudos
Message 2 of 6
(3,184 Views)

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

0 Kudos
Message 3 of 6
(3,171 Views)

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

0 Kudos
Message 4 of 6
(3,162 Views)

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

0 Kudos
Message 5 of 6
(3,149 Views)

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

0 Kudos
Message 6 of 6
(3,115 Views)