LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-Column Listbox Text Alignment

I would like to change the alignment of certain columns in my multi-column listbox. For example, I want the frist column left-justified but the other columns centered. Anyone know of a way to do this?

Obviously, I could change the alignment of ALL columns, or of individual cells. But what about of every row in a certain column?

The same question could be asked about the font, size, or style of a column in the MCListbox.
0 Kudos
Message 1 of 5
(3,975 Views)
I am not at a LV machine right now, but I suggest you try specifying the active cells using of 0,-1,-2 for both collumn and row header indexes. If I remeber correctly they let you specify the width of the collumn headers and the entire collumn/row.

These non-intuitive indexes combined with the appropriate attribute nodes should get you where you need to go.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 5
(3,975 Views)
You are right that I can select the cells I want this way, but the MCListbox property node does not allow me to change the alignment, font, or style of the Active Cell(s).

So that solution will not work.
0 Kudos
Message 3 of 5
(3,975 Views)
Setting the font of specific cells programatically has already been reported to R&D as an suggestion for LabVIEW improvement. At the moment, there is no property that will do the job, and I have not been able to come up with any kind of work around.

Jeremy Braden
National Instruments
0 Kudos
Message 4 of 5
(3,975 Views)
I just ran into this issue as well. LV7.1
0 Kudos
Message 5 of 5
(3,975 Views)