LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multicolumn Listbox, get list of selected cells

Solved!
Go to solution

Hi, I want to get a list of selected cells in a Multicolumn Listbox.

I'm using a Mouse Down event to select the desired cells. This works great.

Now, I need to read the Listbox, and get a list the selected cells. I tried reading the cell colors, but was unsuccessful.

Anyone know how to do this?

 

0 Kudos
Message 1 of 4
(805 Views)
Solution
Accepted by topic author sshick@cox.net

Hi,

 

On a MultiColumn ListBox, you cannot select individual cells. You can only select entire rows, whose indexes are given by the control value itself.

 

Here you are emulating selection of individual cells by coloring them in green, but they are not selected in the sense of the MultiColumn ListBox. So if you want to get their coordinates, the best way would be to keep track of every cell you are coloring in green in an array of coordinates (Row, Column):

raphschru_0-1686510678771.png

Regards,

Raphaël.

Message 2 of 4
(796 Views)

Similarly, you can also read the background color.

0 Kudos
Message 3 of 4
(787 Views)

That's it!

Thanks

0 Kudos
Message 4 of 4
(763 Views)