LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Change orientation for table label labwindows ?

I have a table whith strings for label. I want change the oriantation of the columns labels. How can i do that ?
0 Kudos
Message 1 of 3
(3,355 Views)
You can't change the orientation of the column labels of the table. However, there are a couple of possible work arounds. The easiest option is to put a new line after each character of the column label so that it looks like this:
L
a
b
e
l

The other option could be useful for a very limited use case. If you absolutely have to have the orientation changed, then there is a messy way to do it that will work for a table that won't be scrolled horizontally, change column widths (you'll have to disable ATTR_ENABLE_COLUMN_SIZING), or be moved. You can use a graph and hide everything but the left or right Y-axis label of the graph, and place it over the table columns. The table can't be scrolled horizontally or have its column widths changed since t
he graph controls that are acting as the column labels won't move as the table is scrolled or column widths are changed. You also won't be able to select a whole column by clicking on the label.

I've attached a uir with a table that shows the different options.
0 Kudos
Message 2 of 3
(3,355 Views)

Just wanted to update this thread for anyone who may find it later. The capability of changing the orientation of table rows and columns headers, along with control labels, text messages, tree column headers, and graph axes labels was added in CVI 8.5.

0 Kudos
Message 3 of 3
(3,127 Views)