LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to distinguish single-click and double-click in the listbox

Hi!
 
when single-click, I'm about to display itemnames to a text indicator. when double-click, I'd like to input text into same the text indicator(by local variable).
 
How can I solve this problem?
0 Kudos
Message 1 of 3
(3,529 Views)
Hi,
 
CVI can capture double-click events.  For more information, see the help under Library Reference >> User Interface Library >> Events.  Also, you may want to examine the example program under the help menu >> Find Examples >> Building User Interfaces >> Acquiring User Input >> General >> events.prj.
Cheers,

David Goldberg
National Instruments
Software R&D
0 Kudos
Message 2 of 3
(3,472 Views)
if the list control is set to "Hot", a single click generates a EVENT_VAL_CHANGED if the click changes the selected item, whereas a double-click always generates an EVENT_COMMIT.
Message 3 of 3
(3,445 Views)