Description | Hierarchy | Fields | Methods | Properties |
type TCustomRBWDataGrid = class(TStringGrid)
TCustomRBWDataGrid
is the abstract ancestor of TRbwDataGrid and TRbwRowDataGrid.
![]() |
FBmpChecked: TBitMap; |
![]() |
FBmpDisabledChecked: TBitMap; |
![]() |
FBmpDisabledGrayed: TBitMap; |
![]() |
FBmpDisabledUnchecked: TBitMap; |
![]() |
FBmpGrayed: TBitMap; |
![]() |
FBmpUnchecked: TBitMap; |
![]() |
FButton: TButton; |
![]() |
FButtonClicked: TSetEditEvent; |
![]() |
FButtonColor: TColor; |
![]() |
FCanEditModify: boolean; |
![]() |
FCanSelect: boolean; |
![]() |
FChecked: array of array of TCheckBoxState; |
![]() |
FColWidths: TIntegerDynArray; |
![]() |
FCombo: TComboBox; |
![]() |
FdgColumn: integer; |
![]() |
FdgRow: integer; |
![]() |
FGridState: TRBWGridStates; |
![]() |
FOnColMoving: TCheckMoveEvent; |
![]() |
FOnColSize: TColSizeEvent; |
![]() |
FOnRowMoving: TCheckMoveEvent; |
![]() |
FOptions: TGridOptions; |
![]() |
FStateChanged: TChangeCheckEvent; |
![]() |
Updating: boolean; |
![]() |
procedure AdjustCheckedArray; |
![]() |
procedure AdjustControls; |
![]() |
function GetCellVisible(ACol, ARow: Integer): boolean; |
![]() |
function GetChecked(const ACol, ARow: integer): boolean; |
![]() |
function GetColCount: integer; |
![]() |
function GetState(const ACol, ARow: integer): TCheckBoxState; |
![]() |
function LocalizeString(ANumberString: string): string; |
![]() |
function LocalStrToFloat(S: string): Extended; |
![]() |
procedure SetCells(ACol, ARow: Integer; const Value: string); |
![]() |
procedure SetColCount(const Value: integer); |
![]() |
procedure SetChecked(const ACol, ARow: integer; const Value: boolean); |
![]() |
procedure SetControls(X, Y: integer); |
![]() |
procedure SetOptions(const Value: TGridOptions); |
![]() |
procedure SetState(const ACol, ARow: integer; const Value: TCheckBoxState); |
![]() |
procedure BoundsChanged; override; |
![]() |
procedure ButtonClicked(Sender: TObject); |
![]() |
function CanEditModify: Boolean; override; |
![]() |
function CheckColumnDrag(var Origin, Destination: Integer; const MousePt: TPoint): Boolean; override; |
![]() |
function CheckRowDrag(var Origin, Destination: Integer; const MousePt: TPoint): Boolean; override; |
![]() |
procedure Click; override; |
![]() |
function CollectionItem(const ACol, ARow: Longint): TCustomRowOrColumn; virtual; abstract; |
![]() |
procedure ColumnMoved(FromIndex, ToIndex: Longint); override; |
![]() |
procedure ColWidthsChanged; override; |
![]() |
procedure ComboChange(Sender: TObject); |
![]() |
function CreateEditor: TInplaceEdit; override; |
![]() |
procedure DoEnter; override; |
![]() |
procedure DoExit; override; |
![]() |
procedure DrawCell(ACol, ARow: Longint; ARect: TRect; AState: TGridDrawState); override; |
![]() |
function GetCells(ACol, ARow: Integer): string; |
![]() |
procedure Loaded; override; |
![]() |
procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override; |
![]() |
procedure MoveControls; virtual; |
![]() |
procedure RowHeightsChanged; override; |
![]() |
procedure RowMoved(FromIndex, ToIndex: Longint); override; |
![]() |
function SelectCell(ACol, ARow: Longint): Boolean; override; |
![]() |
procedure SetdgColumn(const Value: integer); virtual; |
![]() |
procedure SetdgRow(const Value: integer); virtual; |
![]() |
procedure SetEditText(ACol, ARow: Longint; const Value: WideString); override; |
![]() |
procedure TopLeftChanged; override; |
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
procedure DeleteColumn(ACol: Longint); override; |
![]() |
procedure DeleteRow(ARow: Longint); override; |
![]() |
destructor Destroy; override; |
![]() |
procedure InsertColumn(ACol: Integer); virtual; |
![]() |
procedure InsertRow(ARow: Integer); virtual; |
![]() |
property Cells[ACol, ARow: Integer]: string read GetCells write SetCells; |
![]() |
property CellVisible[ACol, ARow: Integer]: boolean read GetCellVisible; |
![]() |
property Checked[const ACol, ARow: integer]: boolean read GetChecked
write SetChecked; |
![]() |
property dgColumn: integer read FdgColumn write SetdgColumn; |
![]() |
property dgRow: integer read FdgRow write SetdgRow; |
![]() |
property GridState: TRBWGridStates read FGridState; |
![]() |
property State[const ACol, ARow: integer]: TCheckBoxState read GetState
write SetState; |
![]() |
property ButtonColor: TColor read FButtonColor write FButtonColor; |
![]() |
property ColCount: integer read GetColCount write SetColCount; |
![]() |
property OnButtonClicked: TSetEditEvent read FButtonClicked
write FButtonClicked; |
![]() |
property OnColMoving: TCheckMoveEvent read FOnColMoving write FOnColMoving; |
![]() |
property OnColSize: TColSizeEvent read FOnColSize write FOnColSize; |
![]() |
property OnRowMoving: TCheckMoveEvent read FOnRowMoving write FOnRowMoving; |
![]() |
property OnStateChanged: TChangeCheckEvent read FStateChanged
write FStateChanged; |
![]() |
property Options: TGridOptions read FOptions write SetOptions
default [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine,
goRangeSelect]; |
![]() |
FBmpChecked: TBitMap; |
|
![]() |
FBmpDisabledChecked: TBitMap; |
|
![]() |
FBmpDisabledGrayed: TBitMap; |
|
![]() |
FBmpDisabledUnchecked: TBitMap; |
|
![]() |
FBmpGrayed: TBitMap; |
|
![]() |
FBmpUnchecked: TBitMap; |
|
![]() |
FButton: TButton; |
|
![]() |
FButtonClicked: TSetEditEvent; |
|
![]() |
FButtonColor: TColor; |
|
![]() |
FCanEditModify: boolean; |
|
![]() |
FCanSelect: boolean; |
|
![]() |
FChecked: array of array of TCheckBoxState; |
FChecked stores a TCheckBoxState of all the cells in the grid. See State. |
![]() |
FColWidths: TIntegerDynArray; |
|
![]() |
FCombo: TComboBox; |
|
![]() |
FdgColumn: integer; |
See dgColumn. |
![]() |
FdgRow: integer; |
See dgRow. |
![]() |
FGridState: TRBWGridStates; |
see GridState |
![]() |
FOnColMoving: TCheckMoveEvent; |
|
![]() |
FOnColSize: TColSizeEvent; |
|
![]() |
FOnRowMoving: TCheckMoveEvent; |
|
![]() |
FOptions: TGridOptions; |
TCustomRBWDataGrid has to remove goEditing from the inherited Options. |
![]() |
FStateChanged: TChangeCheckEvent; |
|
![]() |
Updating: boolean; |
|
![]() |
procedure AdjustCheckedArray; |
|
![]() |
procedure AdjustControls; |
![]() |
function GetCellVisible(ACol, ARow: Integer): boolean; |
See CellVisible; |
![]() |
function GetChecked(const ACol, ARow: integer): boolean; |
See Checked. |
![]() |
function GetColCount: integer; |
See ColCount. |
![]() |
function GetState(const ACol, ARow: integer): TCheckBoxState; |
See State. |
![]() |
function LocalizeString(ANumberString: string): string; |
|
![]() |
function LocalStrToFloat(S: string): Extended; |
LocalStrToFloat converts S to a number after first calling LocalizeString on S. |
![]() |
procedure SetCells(ACol, ARow: Integer; const Value: string); |
See Cells. SetCells calls inherited SetCells after first updating FCombo. |
![]() |
procedure SetColCount(const Value: integer); |
See ColCount. |
![]() |
procedure SetChecked(const ACol, ARow: integer; const Value: boolean); |
See Checked. |
![]() |
procedure SetControls(X, Y: integer); |
|
![]() |
procedure SetOptions(const Value: TGridOptions); |
Sets the inherited version of Options as well as the local copy (FOptions). |
![]() |
procedure SetState(const ACol, ARow: integer; const Value: TCheckBoxState); |
See State. |
![]() |
procedure BoundsChanged; override; |
If the combo box or button are visible, their positions are adjusted. |
![]() |
procedure ButtonClicked(Sender: TObject); |
ButtonClicked is the event handler of the FButton OnClick event. It calls OnButtonClicked. |
![]() |
function CanEditModify: Boolean; override; |
|
![]() |
function CheckColumnDrag(var Origin, Destination: Integer; const MousePt: TPoint): Boolean; override; |
|
![]() |
function CheckRowDrag(var Origin, Destination: Integer; const MousePt: TPoint): Boolean; override; |
|
![]() |
procedure Click; override; |
|
![]() |
function CollectionItem(const ACol, ARow: Longint): TCustomRowOrColumn; virtual; abstract; |
|
![]() |
procedure ColumnMoved(FromIndex, ToIndex: Longint); override; |
calls inherited ColumnMoved and then adjusts the Checked array. |
![]() |
procedure ColWidthsChanged; override; |
|
![]() |
procedure ComboChange(Sender: TObject); |
ComboChange is the event handler for the Combobox OnChange event. |
![]() |
function CreateEditor: TInplaceEdit; override; |
Creates the cell editor. |
![]() |
procedure DoEnter; override; |
|
![]() |
procedure DoExit; override; |
DoExit hides the button and combobox and then checks the contents of the last active cell. |
![]() |
procedure DrawCell(ACol, ARow: Longint; ARect: TRect; AState: TGridDrawState); override; |
Shows a check box if the Format is boolean. Disables editing of boolean cells. |
![]() |
function GetCells(ACol, ARow: Integer): string; |
See Cells |
![]() |
procedure Loaded; override; |
Set the FixedCols and Options when the grid is loaded. |
![]() |
procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override; |
MouseDown shows the combo box or button and toggles Checked. |
![]() |
procedure MoveControls; virtual; |
If required, |
![]() |
procedure RowHeightsChanged; override; |
|
![]() |
procedure RowMoved(FromIndex, ToIndex: Longint); override; |
Calls the inherited RowMoved and then adjusts Checked. |
![]() |
function SelectCell(ACol, ARow: Longint): Boolean; override; |
|
![]() |
procedure SetdgColumn(const Value: integer); virtual; |
See dgColumn |
![]() |
procedure SetdgRow(const Value: integer); virtual; |
See dgRow |
![]() |
procedure SetEditText(ACol, ARow: Longint; const Value: WideString); override; |
Validate contents of the cell. |
![]() |
procedure TopLeftChanged; override; |
If the combo box or button is visible, their positions are adjusted. |
![]() |
constructor Create(AOwner: TComponent); override; |
initializes grid. |
![]() |
procedure DeleteColumn(ACol: Longint); override; |
|
![]() |
procedure DeleteRow(ARow: Longint); override; |
|
![]() |
destructor Destroy; override; |
|
![]() |
procedure InsertColumn(ACol: Integer); virtual; |
Use |
![]() |
procedure InsertRow(ARow: Integer); virtual; |
Use |
![]() |
property Cells[ACol, ARow: Integer]: string read GetCells write SetCells; |
|
![]() |
property CellVisible[ACol, ARow: Integer]: boolean read GetCellVisible; |
|
![]() |
property Checked[const ACol, ARow: integer]: boolean read GetChecked
write SetChecked; |
Checked can only be true if a Format is boolean. |
![]() |
property dgColumn: integer read FdgColumn write SetdgColumn; |
|
![]() |
property dgRow: integer read FdgRow write SetdgRow; |
|
![]() |
property GridState: TRBWGridStates read FGridState; |
property GridState: TRBWGridStates read FGridState; Read |
![]() |
property State[const ACol, ARow: integer]: TCheckBoxState read GetState
write SetState; |
State is the TCheckBoxState of the cell at ACol, ARow. |
![]() |
property ButtonColor: TColor read FButtonColor write FButtonColor; |
|
![]() |
property ColCount: integer read GetColCount write SetColCount; |
|
![]() |
property OnButtonClicked: TSetEditEvent read FButtonClicked
write FButtonClicked; |
|
![]() |
property OnColMoving: TCheckMoveEvent read FOnColMoving write FOnColMoving; |
|
![]() |
property OnColSize: TColSizeEvent read FOnColSize write FOnColSize; |
|
![]() |
property OnRowMoving: TCheckMoveEvent read FOnRowMoving write FOnRowMoving; |
|
![]() |
property OnStateChanged: TChangeCheckEvent read FStateChanged
write FStateChanged; |
|
![]() |
property Options: TGridOptions read FOptions write SetOptions
default [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine,
goRangeSelect]; |
|