TBColumn

TBColumnNewC

Create a text column

Syntax

Signature
TBColumn *TBColumnNewC( const char *heading, TBColumnBlockC block );

Arguments

heading is copied into the column. Pass NULL for an empty heading.

block receives the column and returns the current row value. A NULL result displays as empty text.

Description

The callback returns a const char *.

Use TBColumnGetCargo() in the callback to access the application data. Automatic width is calculated from the heading, footing, and the current value when the browse is configured.

See also