Grid Works home page

Overview

Components
TgwGrid

Classes
TgwGridObject
TgwCell
TgwRow
TgwColumn

Additional Information
Grid Options
HTML Reference
Tips & Tricks

Feedback
Report a bug with this manual

How do you rate this manual?
Great
OK
Poor

Comments


Best viewed with
Microsoft Internet Explorer
TgwCell

Unit: gwGrid

Ancestor: TgwGridObject

Properties
Bitmap, BitmapHorizontalAlignment, BitmapVerticalAlignment, BitmapStretch, BitmapTransparency, Text, RowsToSpan, ColumnsToSpan, Column, Row, Focused, RowsToSelect, ColumnsToSelect,

Methods
Assign,



Properties
Bitmap

property Bitmap : TBitmap;

Description Use Bitmap to specify a bitmap image for display in the cell.

Default nil

See also BitmapHorizontalAlignment
BitmapVerticalAlignment
BitmapStretch
BitmapTransparency

BitmapHorizontalAlignment

property BitmapHorizontalAlignment : THorizontalAlignment;

Description Use BitmapHorizontalAlignment to specify the horizontal position of the bitmap within the cell.

These are the possible values of BitmapHorizontalAlignment:
Value Meaning
haLeft Aligned with left edge of cell
haCenter Aligned with horizontal center of cell
haRight Right with right edge of cell


Default haLeft

Please note Has no effect if BitmapStretch is true

See also BitmapVerticalAlignment

BitmapVerticalAlignment

property BitmapVerticalAlignment : TVerticalAlignment;

Description Use BitmapVerticalAlignment to specify the vertical position of the bitmap within the cell.

These are the possible values of BitmapVerticalAlignment:
Value Meaning
vaTop Aligned with top of cell
vaCenter Aligned with vertical center of cell
vaBottom Aligned with bottom of cell


Default vaTop

Please note Has no effect if BitmapStretch is true

See also BitmapHorizontalAlignment

BitmapStretch

property BitmapStretch : boolean;

Description Use BitmapStretch to specify whether the bitmap should be stretched to occupy the entire cell.

Default false

Please note No text will be displayed in the cell if the BitmapStretch is true

See also Bitmap

BitmapTransparency

property BitmapTransparency : TTransparency;

Description Use BitmapTransparency to specify whether the bitmap is to be displayed transparently.

These are the possible values of BitmapTransparency:
Value Meaning
trNone Bitmap is not transparent
trBottomLeft Transparent color is the color of the bottom left hand pixel
trBottomRight Transparent color is the color of the bottom right hand pixel


Default trNone

See also Bitmap

Text

property Text : string;

Description Use Text to specify the text for display in the cell.

HTML may be used to format text. For more information of the supported HTML commands see the HTML Reference


RowsToSpan

property RowsToSpan : integer;

Description Use RowsToSpan to specify the number of rows this cell is to span.

See also ColumnsToSpan

ColumnsToSpan

property ColumnsToSpan : integer;

Description Use ColumnsToSpan to specify the number of columns this cell is to span

See also RowsToSpan

Column

property Column : TColumn;

Description Use Column to reference the Column to which this cell belongs.

See also TColumn
Row

Row

property Row : TRow;

Description Use Row to reference the Row to which this cell belongs.

See also TRow
Column

Focused

property Focused : boolean;

Description Use Focused to determine if the cell is the focused cell.

Only one cell in a grid may be focused.

Setting Focused to true will focus the cell.

The focused cell is also indicated by the RowIndex and ColIndex properties of the grid.


RowsToSelect

property RowsToSelect : integer;

Description Use RowsToSelect to specify how many cells beneath the cell will be selected when this cell is selected.

See also ColumsToSelect

ColumnsToSelect

property ColumnsToSelect : integer;

Description Use ColumnsToSelect to specify how many cells to the right of this cell will be selected when this cell is selected.

See also RowsToSelect


Methods
Assign

procedure Assign(ACell : TCell; Ignore : TInheritOptions); virtual;

Description Call Assign to assign one cell to another.

Any properties specified by the Ignore parameter with not be assigned.


Example Assign cell[2,1] to cell[3,1] but do not assign any Font properties

Grid.Cell[3,1].Assign(Grid.Cell[2,1],
                      [ptFontName, ptFontBold,
                       ptFontItalic, ptFontUnderline,
                       ptFontStrikeout, ptFontSize]);



Copyright © 1998-2007 Innova Software ALL RIGHTS RESERVED
All trademarks are the property of their respective owners.
Webmaster webmaster@innovasoftware.com