Unit QRbwDataGrid

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

QRbwDataGrid is used to define two components: TRbwDataGrid and TRbwRowDataGrid.

uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TCustomRowOrColumn TCustomRowOrColumn defines the behavior of a column or row in a TCustomRBWDataGrid
Class TRbwColumn TRbwColumn defines how the behavior of a column in a TRbwDataGrid.
Class TRbwRow TRbwRow defines how the behavior of a column in a TRbwRowDataGrid.
Class TRbwDataGridColumns TRbwDataGridColumns is a collection of all the columns in a TRbwDataGrid.
Class TRbwDataGridRows TRbwDataGridRows is a collection of all the rows in a TRbwRowDataGrid.
Class TCustomRBWDataGrid TCustomRBWDataGrid is the abstract ancestor of TRbwDataGrid and TRbwRowDataGrid.
Class TRbwDataGrid TRbwDataGrid is a TStringGrid that restricts the data displayed in a cell based on the Format of the TRbwColumn associated with the cell. Cells can also display a combobox or button in a cell
Class TAutoAdjustColumn TAutoAdjustColumn specifies how a column is to adjust its width to fit the text in the column.
Class TAutoAdjustColumns TAutoAdjustColumns specifies how columns are to adjust their width to fit the text in the column.
Class TRbwRowDataGrid TRbwRowDataGrid is a TStringGrid that restricts the data displayed in a cell based on the Format of the TRbwRow associated with the cell. Cells can also display a combobox or button in a cell
Class TRbwInplaceEdit TRbwInplaceEdit is used to gain access to the protected UpdateContents procedure.

Functions and Procedures

procedure Register;

Types

TRbwDataFormat = (...);
TChangeCheckEvent = procedure(Sender: TObject; ACol, ARow: Longint; const Value: TCheckBoxState) of object;
TRBWGridState = (...);
TRBWGridStates = set of TRBWGridState;
TColSizeEvent = procedure(Sender: TObject; ACol, PriorWidth: Longint) of object;
TCheckMoveEvent = procedure(Sender: TObject; const Origin, Destination: Longint; var CanMove: boolean) of object;
TRbwColumnClass = class of TRbwColumn;
TRbwRowClass = class of TRbwRow;
TAutoAdjustColumnClass = class of TAutoAdjustColumn;

Description

Functions and Procedures

procedure Register;

Register registers the component with Delphi.

Types

TRbwDataFormat = (...);

TRbwDataFormat specifies the format used for the data in a column.

Values
  • rcfString:
  • rcfInteger:
  • rcfReal:
  • rcfBoolean:
  • rcfCombo:
TChangeCheckEvent = procedure(Sender: TObject; ACol, ARow: Longint; const Value: TCheckBoxState) of object;

TChangeCheckEvent is the type of TCustomRBWDataGrid.OnStateChanged

Sender = the TCustomRBWDataGrid.

ACol = the column whose checked status has changed.

ARow = the row whose checked status has changed.

Value = the new TCheckBoxState.

TRBWGridState = (...);

TRBWGridState indicates what the TCustomRBWDataGrid is doing.

gsDrawing = drawing the grid cells.

gsClicking = responding to the user clicking on a grid cell.

gsSettingControls = moving the combobox or button to a new location.

Values
  • gsDrawing:
  • gsClicking:
  • gsSettingControls:
TRBWGridStates = set of TRBWGridState;

TRBWGridStates = set of TRBWGridState;

TColSizeEvent = procedure(Sender: TObject; ACol, PriorWidth: Longint) of object;

TColSizeEvent is the type of TCustomRBWDataGrid.OnColSize

Sender = the TCustomRBWDataGrid.

ACol = the column whose width has changed.

PriorWidth = the old width of ACol.

TCheckMoveEvent = procedure(Sender: TObject; const Origin, Destination: Longint; var CanMove: boolean) of object;

TCheckMoveEvent is the type of TCustomRBWDataGrid.OnRowMoving and TCustomRBWDataGrid.OnColMoving

Sender = the TCustomRBWDataGrid.

Origin = the column or row being moved.

Destination = the new position of the column or row being moved.

CanMove = Set CanMove to false to prevent the move.

TRbwColumnClass = class of TRbwColumn;

TRbwColumnClass = class of TRbwColumn;

TRbwRowClass = class of TRbwRow;

TRbwRowClass = class of TRbwRow;

TAutoAdjustColumnClass = class of TAutoAdjustColumn;

TAutoAdjustColumnClass = class of TAutoAdjustColumn;


Generated by PasDoc 0.10.0 on 2006-10-31 09:56:43