CwMatrixCell

CwMatrixCell — A cell of a CwMatrix.

Synopsis

class CwMatrixCell
{
    col;            // short
    colhi;          // short
    collo;          // short
    fill_color;     // color
    flags;          // flag
    font;           // string
    format;         // flag
    formula;        // string
    label;          // string
    row;            // short
    text_color;     // color
    text_string;    // string
}
		

Description

This class is not yet documented in detail.

Instance Variables

col

The column number of this cell.

colhi

Read only. The first column in which the text for this cell is drawn.

collo

Read only. The last column in which the text for this cell is drawn.

fill_color

A number specifying the fill color for this cell. Default is 0xffffff (white).

flags

This instance variable controls the appearance of the cell, and may be a combination of zero or more of the following flags:

ConstantDescription
Cw_CELL_LEFTAligns cell contents to the left.
Cw_CELL_RIGHTAligns cell contents to the right. This is the default.
Cw_CELL_CENTERAligns cell contents to the center.
Cw_CELL_DECIMALAligns cell contents to the decimal point.
Cw_CELL_JUSTIFY_MASKAligns cell contents according to the justify mask.
Cw_CELL_BORDER_LEFT_THINMakes the left border thin.
Cw_CELL_BORDER_RIGHT_THINMakes the right border thin.
Cw_CELL_BORDER_TOP_THINMakes the top border thin.
Cw_CELL_BORDER_BOTTOM_THINMakes the bottom border thin.
Cw_CELL_ALL_BORDERS_THINMakes all borders thin. This is the default.
Cw_CELL_BORDER_LEFT_THICKMakes the left border thick.
Cw_CELL_BORDER_RIGHT_THICKMakes the right border thick.
Cw_CELL_BORDER_TOP_THICKMakes the top border thick.
Cw_CELL_BORDER_BOTTOM_THICKMakes the bottom border thick.
Cw_CELL_ALL_BORDERS_THICKMakes all borders thick.
Cw_CELL_BORDER_LEFTPuts a border on the left side of the cell.
Cw_CELL_BORDER_RIGHTPuts a border on the right side of the cell.
Cw_CELL_BORDER_TOPPuts a border on the top of the cell.
Cw_CELL_BORDER_BOTTOMPuts a border on the bottom of the cell.
Cw_CELL_ALL_BORDERSPuts a border on both sides, top, and bottm of the cell. This is the default.
Cw_CELL_INVERTEDInverts the colors of the cell, exchanging the fill_color for the text_color, and vise versa.
Cw_CELL_SELECTION_BORDERRead only.
Cw_CELL_COVEREDRead only.

font

A string specifying the font used in the cell. Default is helv12.

format

A number, ignored by the widget, but available as a place for the programmer to store information.

formula

A string, ignored by the widget, but available as a place for the programmer to store information.

label

A string, ignored by the widget, but available as a place for the programmer to store information.

row

The row number of this cell.

text_color

A number specifying the text color for this cell. Default is 0x0 (black).

text_string

A string comprising the displayed text of the cell.

Associated Classes

CwMatrix, CwMatrixCallback