LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting listbox item with right mouse click

Solved!
Go to solution

Hi,

 

 

I have a listbox control with non editable items.  Is there an easy way to select an item with a right mousebutton click (Like the left click)

0 Kudos
Message 1 of 3
(2,774 Views)
Solution
Accepted by topic author Franzo

Create an Event structure and generate an event on the Mouse Down? event.  Then use the Button terminal to determine if the right button was pressed.  If it was then set the value of that listbox to the row that the mouse is over.  You can do this using the invoke node Point to Row.

Message 2 of 3
(2,770 Views)

Thank you,  invoke node Point to Row does the work.

 

 

0 Kudos
Message 3 of 3
(2,762 Views)