11-10-2009 01:33 AM
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 ?
Solved! Go to Solution.
11-10-2009 03:26 AM
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,
11-10-2009 03:52 AM
That sucks.
Im surprised that cvi does not seperate the two events because they generally have different functionality.
Well thanks for the information.
11-10-2009 11:41 AM
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