LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multicolumn listbox cell location

How can I determine the row and column number of the cell the end user has clicked on with the mouse. I am speaking of somthing equivalant to the edit position attribute found for the table control.
0 Kudos
Message 1 of 4
(2,953 Views)
I think that you can determine only the row number of the cell the user has clicked on. To do it set the scalar data type of your multicolumn listbox and simply read the data.
This is because of that fact that actually listbox is a one demensional array. In multicolumn listbox the additional columns are used only for some extra info.
If you want to use 2D array you may use Tables.

Oleg Chutko.
0 Kudos
Message 2 of 4
(2,953 Views)
if multicolumn listbox is one deminsional why am I able to obtain the column number of the header that is clicked. I have looked at the table control but the muticolumn listbox is more suited for my application. Is there a cleaver work around?
0 Kudos
Message 3 of 4
(2,953 Views)
Read the help for LabVIEW.
It is written that
"The multicolumn listbox includes columns where you can add more information for each option, such as the size of the option and the date it was created. You can set the number of columns and create headers for each column."
I think this means that actually you have an ordinary listbox but with some additional info. And columns are used only for some extra info such as units of measurements, etc. The rows are the options of this list box, but not the cells.
May be I'm not right but I think that the word Listbox means the one demension.

Oleg Chutko.
0 Kudos
Message 4 of 4
(2,953 Views)