Class TCustomRowOrColumn

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCustomRowOrColumn = class(TCollectionItem)

Description

TCustomRowOrColumn defines the behavior of a column or row in a TCustomRBWDataGrid

.

Hierarchy

Overview

Fields

Private FButtonCaption: string;
Private FButtonFont: TFont;
Private FButtonUsed: boolean;
Private FButtonWidth: integer;
Private FCheckMax: boolean;
Private FCheckMin: boolean;
Private FFormat: TRbwDataFormat;
Private FLimitToList: Boolean;
Private FMaxLength: Integer;
Private FPickList: TStrings;
Private FMax: extended;
Private FMin: extended;
Private FParentButtonFont: boolean;

Methods

Private function GetButtonFont: TFont;
Private procedure SetButtonCaption(const Value: string);
Private procedure SetButtonFont(const Value: TFont);
Private procedure SetButtonUsed(const Value: boolean);
Private procedure SetButtonWidth(const Value: integer);
Private procedure CheckCell(const ACol, ARow: integer);
Private procedure SetFormat(const Value: TRbwDataFormat);
Private procedure SetCheckMax(const Value: boolean);
Private procedure SetCheckMin(const Value: boolean);
Private procedure SetMax(const Value: extended);
Private procedure SetMin(const Value: extended);
Private procedure SetParentButtonFont(const Value: boolean);
Protected procedure PickListChange(Sender: TObject); virtual;
Protected procedure SetPickList(const Value: TStrings); virtual;
Protected procedure CheckRange; virtual; abstract;
Protected function GetGrid: TCustomRBWDataGrid; virtual; abstract;
Protected procedure SetGridCount(const Value: integer); virtual; abstract;
Protected function SelectedRowOrColumn: integer; virtual; abstract;
Public procedure Assign(Source: TPersistent); override;
Public constructor Create(Collection: TCollection); override;
Public destructor Destroy; override;

Properties

Public property Grid: TCustomRBWDataGrid read GetGrid;
Published property ButtonCaption: string read FButtonCaption write SetButtonCaption;
Published property ButtonFont: TFont read GetButtonFont write SetButtonFont;
Published property ButtonUsed: boolean read FButtonUsed write SetButtonUsed;
Published property ButtonWidth: integer read FButtonWidth write SetButtonWidth;
Published property CheckMax: boolean read FCheckMax write SetCheckMax;
Published property CheckMin: boolean read FCheckMin write SetCheckMin;
Published property Format: TRbwDataFormat read FFormat write SetFormat;
Published property LimitToList: Boolean read FLimitToList write FLimitToList;
Published property Max: extended read FMax write SetMax;
Published property MaxLength: Integer read FMaxLength write FMaxLength;
Published property Min: extended read Fmin write Setmin;
Published property ParentButtonFont: boolean read FParentButtonFont write SetParentButtonFont default True;
Published property PickList: TStrings read FPickList write SetPickList;

Description

Fields

Private FButtonCaption: string;

FButtonCaption: string;

See ButtonCaption

Private FButtonFont: TFont;

FButtonFont: TFont;

See ButtonFont

Private FButtonUsed: boolean;

FButtonUsed: boolean;

See ButtonUsed

Private FButtonWidth: integer;

FButtonWidth: integer;

See ButtonWidth

Private FCheckMax: boolean;

FCheckMax: boolean;

See CheckMax

Private FCheckMin: boolean;

FCheckMin: boolean;

See CheckMin

Private FFormat: TRbwDataFormat;

FFormat: TRbwDataFormat;

See Format

Private FLimitToList: Boolean;

FLimitToList: Boolean;

See LimitToList

Private FMaxLength: Integer;

FMaxLength: Integer;

See MaxLength

Private FPickList: TStrings;

FPickList: TStrings;

See PickList

Private FMax: extended;

FMax: extended;

See Max

Private FMin: extended;

FMin: extended;

See Min

Private FParentButtonFont: boolean;

FParentButtonFont: boolean;

See ParentButtonFont

Methods

Private function GetButtonFont: TFont;

See ButtonFont

Private procedure SetButtonCaption(const Value: string);

See ButtonCaption

Private procedure SetButtonFont(const Value: TFont);

See ButtonFont

Private procedure SetButtonUsed(const Value: boolean);

See ButtonUsed

Private procedure SetButtonWidth(const Value: integer);

See ButtonWidth

Private procedure CheckCell(const ACol, ARow: integer);

See CheckRange

Private procedure SetFormat(const Value: TRbwDataFormat);

See Format

Private procedure SetCheckMax(const Value: boolean);

See CheckMax

Private procedure SetCheckMin(const Value: boolean);

See CheckMin

Private procedure SetMax(const Value: extended);

See Max

Private procedure SetMin(const Value: extended);

See Min

Private procedure SetParentButtonFont(const Value: boolean);

See ParentButtonFont

Protected procedure PickListChange(Sender: TObject); virtual;

the OnChange event handler for PickList

Protected procedure SetPickList(const Value: TStrings); virtual;

See PickList.

Protected procedure CheckRange; virtual; abstract;

CheckRange ensures that the real-number or integer values for a cell are within the limits specified using CheckMin, CheckMax, Min, and Max.

Protected function GetGrid: TCustomRBWDataGrid; virtual; abstract;

returns the TCustomRBWDataGrid that owns the column.

Protected procedure SetGridCount(const Value: integer); virtual; abstract;

Sets the number of rows or columns in the TCustomRBWDataGrid. Which depends on whether the grid is a TRbwDataGrid or a TRbwRowDataGrid.

Protected function SelectedRowOrColumn: integer; virtual; abstract;

SelectedRowOrColumn sets the selected column or row of the TCustomRBWDataGrid. Which depends on whether the grid is a TRbwDataGrid or a TRbwRowDataGrid.

Public procedure Assign(Source: TPersistent); override;

If Source is a TCustomRowOrColumn, Assign copies the values of the Source.

Public constructor Create(Collection: TCollection); override;

Creates an instance of the TCustomRowOrColumn.

Public destructor Destroy; override;

Destroys the instance of TCustomRowOrColumn. Don't call Destroy; call Free instead.

Properties

Public property Grid: TCustomRBWDataGrid read GetGrid;

returns the TCustomRBWDataGrid that owns the column.

Published property ButtonCaption: string read FButtonCaption write SetButtonCaption;

ButtonCaption is the caption on the button that appears if ButtonUsed is true and the user selects a cell in this column.

Published property ButtonFont: TFont read GetButtonFont write SetButtonFont;

ButtonFont is the font of the button that appears if ButtonUsed is true and the user selects a cell in this column. See also ParentButtonFont.

Published property ButtonUsed: boolean read FButtonUsed write SetButtonUsed;

ButtonUsed determines whether a button appears when a user clicks on a cell in this column.

Published property ButtonWidth: integer read FButtonWidth write SetButtonWidth;

ButtonWidth is the width of the button that appears if ButtonUsed is true and the user selects a cell in this column.

Published property CheckMax: boolean read FCheckMax write SetCheckMax;

If CheckMax is true and the Format specifies a real or integer number, CheckMax determines whether the number may exceed Max.

Published property CheckMin: boolean read FCheckMin write SetCheckMin;

If CheckMin is true and the Format specifies a real or integer number, CheckMin determines whether the number may be less than Min.

Published property Format: TRbwDataFormat read FFormat write SetFormat;

Format determines whether a cell must be a real number, integer, boolean value, string, or display a combo-box.

Published property LimitToList: Boolean read FLimitToList write FLimitToList;

If the Format specifies a combo-box, LimitToList specifies whether the user may enter a value that is not in the list displayed by the combo-box.

Published property Max: extended read FMax write SetMax;

If CheckMax is true and the Format specifies a real or integer number, CheckMax determines whether the number may exceed Max.

Published property MaxLength: Integer read FMaxLength write FMaxLength;

If the Format specifies a string, MaxLength is the maximum length of that string.

Published property Min: extended read Fmin write Setmin;

If CheckMin is true and the Format specifies a real or integer number, CheckMin determines whether the number may be less than Min.

Published property ParentButtonFont: boolean read FParentButtonFont write SetParentButtonFont default True;

ParentButtonFont determines whether the font of the button is the same as the font of the TCustomRBWDataGrid or is specified separately in ButtonFont.

Published property PickList: TStrings read FPickList write SetPickList;

If a combobox is visible PickList will determine what choices are available to the user in it.


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