10-19-2017 05:45 PM
Hello,
I'm using Labview 2015 and i want to have the contents of a listbox organized horizontally rather than vertically, as you can with arrays for instance. Since, as far as i know, that isn't possible for listoboxes is there an alternative to achieve the behavior i want?
Thank you.
10-19-2017 06:11 PM
You can have a multi-column listbox or an array of strings. But, can you explain what and why you are trying to display so we can offer the best suggestion?
10-19-2017 06:31 PM
Hello Gregory,
The group name of a tdms file I'm reading, is a date and a comment on that day. I want to display the date as column header and the comment as the cell data below that header. (see attached picture for an example).
In multi-column listbox only the content of the first column is selectable, I want to be able to select more than one column at a time, as in in listbox i can select rows.
10-19-2017 08:06 PM
That looks like a table to me.
10-20-2017 01:24 AM
Thank you all for your answers and sorry if my questions seem a little bit stupid...
If I am not mistaking, a table is a 2d array of strings, it's not what i want.
I want to select a cell (or more) and the output to be the index of the selected cell (the functionality of a listbox), I don't want to edit the contents of the cell from the front panel, as in a table.
The snapshot I had attached was from a multi-column listbox and it is exactly what I need if I could select columns and not only rows.
10-20-2017 08:21 AM
Yes. A table is a 2D array of strings.
A table can be an indicator. That means you can't edit the cells.
Do you need to select more than 1 column at a time?
Even with only 1 column to select, you'd probably have to write some background code to handle mouse events so that you program selecting columns on a table as opposed to having it more built into the indicator.
10-20-2017 08:57 AM
Yes, I want to select more than one columns at a time and although a table can be an indicator of course, the cell(s) I select (even if programmatically figure out which they are) wont be highlighted.
It doesn't seem like it is what I want, maybe I will just redesign the front panel to use the default vertical multi-column listbox.