LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I control the size of a command buttoon in a table control?

Hi,

 

I was wondering if there is a way to control the height of a command button in a table control.

There does not appear to be a column or cell attribute that can achieve this.

 

Thanks!

--Bill

0 Kudos
Message 1 of 3
(2,632 Views)

The size of 'buttons' in a table is given by the cell size, i.e. the row height, that's why you can not set he button height individually

0 Kudos
Message 2 of 3
(2,628 Views)

Hi Wolfgang,

 

Thanks for the reply, I came to that conclusion as well. What I have is a mixed table with instructions that word wrap in one cell, a command button to log step completion, and I needed the row height to be set to the tallest cell contents, so all I really needed to do was set the word wrap for my text instruction cell, and then as each row is programmatically inserted and the table is populated call:

 

SetTableRowAttribute(panel, table, row, ATTR_SIZE_MODE, VAL_USE_EXPLICIT_SIZE);
SetRowHeightToTallestCellContents(panel, table, row);

 

That will allow the row to be sized accordingly without having to worry about the number of visible text lines for the text cell.

 

Thanks!

--Bill

 

 

0 Kudos
Message 3 of 3
(2,623 Views)