LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

setting focus on right clicked cell/row of a listbox

Solved!
Go to solution

I have a listbox. I want to display right-click menu. Right-click menu has to show certain options based on whether the item is check marked or not. Problem is how can I  find out whether the right clicked row/cell is check marked or not. Do I have to set selection to that cell/row first (if yes how)? or it can be done without the row/cell being selected (being highlighted as when it is left clicked). If it is possible to leave the highlight on the row which had been left clicked while I can find out the item symbol of the cell/row which had been right-clicked, that would be even better.

 

Your help would be appreciated!

 

Have a very pleasant day!

0 Kudos
Message 1 of 3
(2,783 Views)
Solution
Accepted by topic author Rashid-Malik

Here is some code to see if the row is checked (symbol nr. 1):

 

 

And here one to behave like as a left mouse button:

 

 

And yes you can use the first code to detect the checked status without changing the value of the listbox.

 

Ton

Message Edited by TonP on 01-13-2009 01:48 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Download All
Message 2 of 3
(2,774 Views)

Thanks Ton! That was great help. Solved the problem. Couldn't figure out point to row function usage. That was what I needed.

Thanks again!

Pleasant day to you!

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