LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to select seperate column in multicolumn list box

Hi,
 
Col1      Col2
 
A            B
C           D
 
for above multicolumn list box, Can i select (highlight) only one row from Col2 (I want to select only D and pass string as output)?
 


Message Edited by myanmar on 04-21-2008 12:30 AM

Message Edited by myanmar on 04-21-2008 12:32 AM
0 Kudos
Message 1 of 17
(11,875 Views)
You should look into the table for this.

Ton
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!
0 Kudos
Message 2 of 17
(11,858 Views)

Hi

Do you mean to use table instead of multicolumn list box? When i tried using invoke node, I can get the right row & column value by selecting using mouse down event. But now I want to highlight with color that particular selected cell. I still trying to program it. Any suggestion?

0 Kudos
Message 3 of 17
(11,841 Views)
This is in 8.5, and will do what you want.  It will also work on Tables.  It will output the selected cell's value as it seems you have determined, and will make it look like the cell is selected.  This will work if the listbox is a control or indicator.  Basically, you change the cell colors to make it look like it is selected.
Message 4 of 17
(11,832 Views)

Matthew,
Very cool VI, I learned a lot from it. I was searching the forum to find out how to get rid of that pesky selection box around the first row of the selected row, your VI does it perfectly (set to multicolumn listbox to -1 at beginning, discard valid Mouse Down? events, changing Active Cell color instead). Also liked the use of the feedback node; I've needed to do something similair several times but have just shift registers, which get annoying fast when you have lots and lots of events to wire it through on. Thanks!

Michael

0 Kudos
Message 5 of 17
(11,633 Views)

Hi everybody!

 

Can someone enclose the above VI on 8.2 version??? I cant open it...

 

Thanks in advance 

  

0 Kudos
Message 6 of 17
(11,293 Views)

See next message.  For some reason the browser posted the message when I clicked on the Add Attachment link.

Message Edited by Ravens Fan on 02-06-2009 10:53 PM
0 Kudos
Message 7 of 17
(11,274 Views)

Hello Team,

 

I have multi column list box and the first column contains a check box...I have an mouse down event structure where i am selecting the check box based on the selection of the row and column but when i am moving the scroll bar, it is giving the row and column index as 0 and 0 and is selecting or deselecting that row...means when i am scrolling it is going to mouse down event and is doing the selection there..but i don't want this when i scroll it should just scroll and not to go to the mouse down event.Please let me know the solution.

0 Kudos
Message 9 of 17
(10,612 Views)
Assuming you are using the Point to Row Column Event, the In Bounds output is not high if you are using the scrollbar.  Put a case statement around your code and don't execute it if the mouse down event is not in bounds.
0 Kudos
Message 10 of 17
(10,583 Views)