int32_t __stdcall tblGetFlags(ITBL Table, int32_t Row, int32_t Col);
BOOL32 __stdcall tblSetFlags(ITBL Table, int32_t Row, int32_t Col, TTableFlags Flags);
function tblGetFlags(const Table: ITBL; Row, Col: Integer): Integer; stdcall;
function tblSetFlags(const Table: ITBL; Row, Col: Integer; Flags: TTableFlags): LongBool; stdcall;
Purpose. Get/set a per-cell flags bitmask (this chapter did not independently enumerate TTableFlags' individual bit meanings — treat as opaque, consumed at draw time).
Description. Both plain, real, bounds-checked accessors over TTableCell.Flags — a genuine real round-trip (unlike several other "round-trip only" fields documented elsewhere in this volume, this one's setter writes the exact field the getter reads, no disconnection).
Parameters.
| Parameter | Description |
|---|---|
Table | Target table handle. |
Row, Col | Target cell coordinates. |
Flags | *(Set only)* The new flags bitmask (replaces, does not OR-merge, the existing value). |
Return value. tblGetFlags: the cell's flags (0 if out of range). tblSetFlags: True if in range.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Misc
tblSetFlags
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.