Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006

Capturing a Mouse Double-Click

3 ratings | 4.67 out of 5
Print

Downloads

Filename: doubleclicktest.vi
Requirements: View

This example captures a left mouse button double-click in LabVIEW. The Windows Message Queue Library example does not support the double-click message events WM_LBUTTONDBCLK or WM_RBUTTONDBCLK, because LabVIEW does not request double-click messages from the system. Instead, it performs its own processing to calculate when double-click events occur. Therefore, these messages are not being posted to the system. This example shows how you can request from the system the parameters that define a double-click event and use them to determine if two single clicks constitute a double-click.

This functionality has been integrated into LabVIEW 7.0 and later through the event structure.

NOTE: You must have the Windows Message Queue Library (linked below) and the User32 DLL located in C:\Windows\System on Win98 and C:\WinNT\System32 on WinNT and Win2000.


Related Links:
Windows Message Queue Library

Requirements


Filename: doubleclicktest.vi

Software Requirements


Application Software: LabVIEW Full Development System 6.0
Language(s): LabVIEW

 
3 ratings | 4.67 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).