Class TBColumn() Foundation

Class function of the TBColumn class.

Description

The class object generates TBColumn objects using its class method :new().

TBColumn objects are simple objects that contain instance variables and no methods. They are used exclusively by a TBrowse object. The instance variables in the TBColumn object are used by the TBrowse to display a single column of data in the browse window of the TBrowse object.

The most important instance variable (:block) contains a code block which retrieves data out of the appropriate column of the data source. For example, the column might retrieve the value of a particular field in a work area or a column of a two-dimensional array.

Besides retrieving column data, TBColumn objects can control the color used to display the data.

When new values are assigned to instance variables of a TBColumn object in use by a TBrowse object, the TBrowse method :configure() must be called so that the changes to the column object are recognized (see TBrowse class).

Class methods
:new()
Generates an instance of a TBColumn object.
Instance variables
:block
Contains the data code block of a TBColumn object.
:cargo
Instance variable for ad-hoc use
:colorBlock
Changes the color of a column.
:colSep
Seperator character which is displayed to the left of a column.
:defColor
Determines the default color for the column.
:footing
Defines the footer lines of a table column.
:footSep
Character that separates the footer line from the data rows.
:heading
Defines the header lines of a column.
:headSep
Character that separates the header line from the data rows.
:picture
Defines the display format of the data in a column.
:width
Defines the width of a column.
Examples
TBColumn usage
// See the examples in the TBrowse class 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.