LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find right-clicked row number in Multicolumn Listbox

Solved!
Go to solution

Hi,

 

I'm trying to find the row number of the right clicked point in Multicolumn(MC) Listbox.

Scenario:  
I have enabled custom right-click menu for Multicolumn Listbox
When user right clicks on a row in Multicolumn listbox, I need to know the row number of right clicked point in MC Listbox.

 

I can find Row property in Event structure for MC Listbox double click event, but the same is not available for shortcut menu event.

 

--Ajay

--
Ajay MV


0 Kudos
Message 1 of 4
(3,745 Views)
Solution
Accepted by topic author Ajay_MV

The MC listbox has a method called Point to Row Column. Call that method in the event case and give it the data from the coords terminal of the menu activation event. It will return the clicked cell.


___________________
Try to take over the world!
Message 2 of 4
(3,734 Views)

A bit late, will post the snippet anyway. It looks for mouse down? event and discards it if its not a right click (button 2). In the mouse down event, use the property node as tst suggested.

rightclick.png

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 3 of 4
(3,729 Views)

Thanks tst.. It worked well.

 

Regards,

Ajay

--
Ajay MV


0 Kudos
Message 4 of 4
(3,725 Views)