LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MultiColumn ListBox Number of Columns - This is Messed Up

If you have a multicolumn listbox with row headers not visible, the property "Number of Columns" works as a sane person would expect.

However of the row headers are visible, then when you write to the "Number of Columns", it counts the row headers as one of the columns, but when you read the property, it doesn't count the row headers column.  Thus if row headers aren't visible & you write 4 to "Number of Columns", you get this:

mclb1.png and read back 4.

But when row headers are visible, and you write 4, you get this:

mclb2.png and read back 3.

And if you go to the properties page and enter a number for "Number of Columns", you entry will be reduced by 1; this also means that the increment button doesn't work.

"If you weren't supposed to push it, it wouldn't be a button."
Message 1 of 3
(1,925 Views)

You didn't say what version you're using but I see the same thing in 2012. 

In addition, the decrement button in the properties page decreases the number of columns by 2. 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 2 of 3
(1,882 Views)

I was using LV 2018.  They probably can't fix "Number of Columns" now, because there might be a lot of code out there that works around this problem, and that code wouldn't work correctly anymore if they fixed the property.  The best they could do is add a new property "Real Number of Columns".

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 3
(1,866 Views)