The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: TNTabEd
Declaration: function AutoRowHeight (RowNr: longint; Addon: integer): integer;

The function AutoRowHeight adjusts the row height so that every cell of the row RowNr is fully readable. Note, that the optimum height depends on the contents of the cells. The parameter RowNr may take any value between -1 and the number of available rows, NrOfRows. A value of -1 addresses the row containing the column attributes (if visible), a zero value refers to the column identifiers, any other value refers to the corresponding row.

The property Addon defines an additional value which is added to the optimum row height. Addon may be negative (to reduce the row height); however, no row will be displayed using less than 4 pixels. The function returns the new height of the row (in pixels).

Last Update: 2023-Dec-13