CwMatrixCell

Gamma/Photon: Using Gamma™ with the Photon microGUIŽ, Version 4.0
Prev |  | Next

# `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:

  Constant | Description
  --- | ---
  Cw_CELL_LEFT | Aligns cell contents to the left.
  Cw_CELL_RIGHT | Aligns cell contents to the right. This is the default.
  Cw_CELL_CENTER | Aligns cell contents to the center.
  Cw_CELL_DECIMAL | Aligns cell contents to the decimal point.
  Cw_CELL_JUSTIFY_MASK | Aligns cell contents according to the justify mask.
  Cw_CELL_BORDER_LEFT_THIN | Makes the left border thin.
  Cw_CELL_BORDER_RIGHT_THIN | Makes the right border thin.
  Cw_CELL_BORDER_TOP_THIN | Makes the top border thin.
  Cw_CELL_BORDER_BOTTOM_THIN | Makes the bottom border thin.
  Cw_CELL_ALL_BORDERS_THIN | Makes all borders thin. This is the default.
  Cw_CELL_BORDER_LEFT_THICK | Makes the left border thick.
  Cw_CELL_BORDER_RIGHT_THICK | Makes the right border thick.
  Cw_CELL_BORDER_TOP_THICK | Makes the top border thick.
  Cw_CELL_BORDER_BOTTOM_THICK | Makes the bottom border thick.
  Cw_CELL_ALL_BORDERS_THICK | Makes all borders thick.
  Cw_CELL_BORDER_LEFT | Puts a border on the left side of the cell.
  Cw_CELL_BORDER_RIGHT | Puts a border on the right side of the cell.
  Cw_CELL_BORDER_TOP | Puts a border on the top of the cell.
  Cw_CELL_BORDER_BOTTOM | Puts a border on the bottom of the cell.
  Cw_CELL_ALL_BORDERS | Puts a border on both sides, top, and bottm of the cell. This is the default.
  Cw_CELL_INVERTED | Inverts the colors of the cell, exchanging the `fill_color` for the `text_color`, and vise versa.
  Cw_CELL_SELECTION_BORDER | Read only.
  Cw_CELL_COVERED | Read 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`

Prev | Home | Next
Common Classes | Up | `PhArea`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.