03-01-2013 07:59 AM
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
03-01-2013 08:29 AM
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
03-01-2013 09:32 AM
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