BOOL32 __stdcall tblSetGridWidth(ITBL Table, float Horz, float Vert);
BOOL32 __stdcall tblSetColWidth(ITBL Table, uint32_t Col, float Width, BOOL32 ExtTable);
BOOL32 __stdcall tblSetRowHeight(ITBL Table, int32_t Row, float Value);
void __stdcall tblSetTableWidth(ITBL Table, float Value, TColumnAdjust AdjustType, float MinColWidth);
function tblSetGridWidth(const Table: ITBL; Horz, Vert: Single): LongBool; stdcall;
function tblSetColWidth(const Table: ITBL; Col: Cardinal; Width: Single; ExtTable: LongBool): LongBool; stdcall;
function tblSetRowHeight(const Table: ITBL; Row: Integer; Value: Single): LongBool; stdcall;
procedure tblSetTableWidth(const Table: ITBL; Value: Single; AdjustType: TColumnAdjust; MinColWidth: Single); stdcall;
Purpose. Set the table's horizontal/vertical grid-line widths, a specific column's width, a specific row's height, and the table's overall width.
Description. tblSetGridWidth genuinely stores both Horz/Vert (TLumasTable.GridH/GridV, table-wide — there is no per-cell grid line width). tblSetRowHeight is a genuine, real, bounds-checked per-row setter. tblSetColWidth's ExtTable parameter is accepted but never passed to the real SetColWidth(Col, Width) call — only Col/Width reach the actual field write; whatever "extend to fit table" or similar behavior ExtTable might imply does not happen. tblSetTableWidth's AdjustType and MinColWidth are BOTH accepted but never used — the real SetTableWidth(W) method is a bare one-line field assignment (Width := W) with no column-redistribution logic at all, despite TColumnAdjust strongly implying the existing columns get proportionally resized or clamped to MinColWidth to fit the new total width. Changing the table width via this function does not touch any individual column's width (ColW array) — a caller must separately call tblSetColWidth per column to actually make the visual layout match the new declared width, or the table will draw with column widths that no longer sum to TableWidth.
Parameters.
| Parameter | Description |
|---|---|
Table | Target table handle. |
Horz, Vert | *(GridWidth only)* Table-wide grid line widths. |
Col, Width | *(ColWidth only)* Target column and its new width. |
ExtTable | *(ColWidth only)* Accepted but never used. |
Row, Value | *(RowHeight only)* Target row and its new height. |
Value | *(TableWidth only)* The new declared table width — a bare field assignment, does not redistribute column widths. |
AdjustType, MinColWidth | *(TableWidth only)* Both accepted but never used — no column-adjustment logic exists at all. |
Return value. True/success if Table (and, for column/row setters, the index) resolves. tblSetTableWidth is a procedure — no return value.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Misc
tblSetColWidth
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.