LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

table column to small

hello,

i read data from a xml file and display it in a table. the columns are to small for the data and the table doesn't autosize.
is there a way to set the size of each column??

best regards

markus
0 Kudos
Message 1 of 4
(3,343 Views)

You can use

SetTableColumnAttribute (panel, table, columnIndex, ATTR_SIZE_MODE, VAL_USE_EXPLICIT_SIZE);

SetTableColumnAttribute (panel, table, columnIndex, ATTR_COLUMN_WIDTH, pixels);

where <pixels> is the desired column width.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 4
(3,335 Views)
hello,

your code doesn't seems to be LabView code.

markus
0 Kudos
Message 3 of 4
(3,323 Views)

Sure: you're in CVI forum! Smiley Wink

Maybe it's better you post your question in the LV forum where you'll surely find more help.

Anyway, I'll try to set the width of a cell in a column via a table property node (properties active cell + cell width). But it's possible that there is a more efficient method.

Message Edited by Roberto Bozzolo on 09-26-2005 09:12 AM



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 4 of 4
(3,320 Views)