02-27-2013 04:33 AM
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
Solved! Go to Solution.
02-27-2013 05:09 AM - edited 02-27-2013 05:09 AM
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.
02-27-2013 05:14 AM
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.
02-27-2013 05:15 AM