LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Check if double left click ?

Solved!
Go to solution

Hi

 

I need some help to sovle this one.

 

At the moment what is happening is the when the use double clicks on a panel it does the left click event stuff and then the Double left cick stuff.

How can i read the two seperately ?

Or how can i check if the use has done a double click before the left click eventdoes its stuff ?

 

Help share your knowlegde
0 Kudos
Message 1 of 4
(3,405 Views)
Solution
Accepted by topic author Shako

Shako, I'm afraid there is no trivial way of distinguishing them.

 

From NI site search I found a KB article for a similar problem in LabView.

So they have the same problem, too 😉

 

The propsed solution is counting the clicks within a small period of time.

I felt weird that I did not encounter this situation before. Probably, I never had to use both events at the same time.

 

Hope this helps, 

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 4
(3,390 Views)

That sucks.

 

Im surprised that cvi does not seperate the two events because they generally have different functionality.

Well thanks for the information.

Help share your knowlegde
0 Kudos
Message 3 of 4
(3,387 Views)

You might try using PostDeferredCall to delay the left click handling. The double click handler could set some global flag that the deferred left click handler can check to see if a double click was processed.

 

I'm not certain you can necessarily rely on the deferred call being processed after the double click event, but it's an avenue you can explore.

 

Mert A.

National Instruments

Message 4 of 4
(3,357 Views)