From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,408 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,404 Views)

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

 

 

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