 |
function CollectionItem(const ACol, ARow: Longint): TCustomRowOrColumn; virtual; abstract; |
 |
function GetCellVisible(ACol, ARow: Integer): boolean; |
 |
function GetChecked(const ACol, ARow: integer): boolean; |
 |
function GetCheckState(const ACol, ARow: integer): TCheckBoxState; |
 |
function GetColCount: Longint; |
 |
function GetRowCount: Longint; |
 |
function LocalizeString(ANumberString : string) : string; |
 |
function LocalStrToFloat(S: string): Extended; |
 |
function RequiredCellHeight(const ACol, ARow: integer): integer; |
 |
function TextRect(const ACol, ARow: integer): TRect; |
 |
procedure AdjustRowHeights(const ARow: integer); virtual; abstract; |
 |
procedure ButtonClick(Sender: TObject); |
 |
procedure FillCaptionList(CellCaption: string; const CaptionList: TStringList; Width: integer); |
 |
procedure MoveCheckStateWithColumn(FromColIndex, ToColIndex: Integer); |
 |
procedure MoveCheckStateWithRow(FromRowIndex, ToRowIndex: Integer); |
 |
procedure SetChecked(const ACol, ARow: integer; const Value: boolean); |
 |
procedure SetCheckState(const ACol, ARow: integer; const Value: TCheckBoxState); |
 |
procedure SetColCount(const Value: Longint); |
 |
procedure SetdgColumn(const Value: integer); |
 |
procedure SetdgRow(const Value: integer); |
 |
procedure SetOptions(const Value: TGridOptions); |
 |
procedure SetRowCount(const Value: Longint); |
 |
procedure SetSelectedRowOrColumnColor(const Value: TColor); |
 |
procedure SetUnselectableColor(const Value: TColor); |
 |
function GetSelection: TGridRect; |
 |
procedure SetSelection(const Value: TGridRect); |
 |
procedure WMHScroll(var Msg: TWMHScroll); message WM_HSCROLL; |
 |
procedure WMVScroll(var Msg: TWMVScroll); message WM_VSCROLL; |
 |
procedure SetColumn(const Value: integer); |
 |
procedure SetRow(const Value: integer); |
 |
function GetRangeSelection: TGridRect; |
 |
procedure SetColorRangeSelection(const Value: boolean); |
 |
procedure SetRangeSelectionColor(const Value: TColor); |
 |
procedure SetRangeSelectionFontColor(const Value: TColor); |
 |
function GetSpecialFormat(ACol, ARow: Integer): TRbwColumnFormat4; |
 |
function GetUseSpecialFormat(ACol, ARow: Integer): boolean; |
 |
procedure ResizeSpecialFormat; |
 |
procedure AssignSpecialFormat(ACol, ARow: Integer); |
 |
procedure SetSpecialFormat(ACol, ARow: Integer; const Value: TRbwColumnFormat4); |
 |
procedure SetUseSpecialFormat(ACol, ARow: Integer; const Value: boolean); |
 |
function GetCellFormat(const ACol, ARow: Integer): TRbwColumnFormat4; |
 |
procedure GetPickListItems(ACol, ARow: Integer; Items: TStrings); |
 |
procedure GetButtonCaption(Sender: TObject; var ButtonCaption: string); |
 |
procedure GetButtonWidth(Sender: TObject; var ButtonWidth: Integer); |
 |
function GetColVisible(ACol: Integer): boolean; |
 |
function GetItemIndex(const ACol, ARow: integer): integer; |
 |
procedure SetItemIndex(const ACol, ARow, Value: integer); |
 |
procedure SetExtendedAutoDistributeText(const Value: boolean); |
 |
procedure SetAutoIncreaseColCount(const Value: boolean); |
 |
function CanEditShow: Boolean; override; |
 |
function CheckColumnDrag(var Origin, Destination: Integer; const MousePt: TPoint): Boolean; override; |
 |
function CheckRowDrag(var Origin, Destination: Integer; const MousePt: TPoint): Boolean; override; |
 |
function ColorSelectedRowOrColumn(ACol, ARow: integer) : boolean; virtual; abstract; |
 |
function ColumnOrRow: integer; virtual; abstract; |
 |
function CreateEditor: TInplaceEdit; override; |
 |
function GetEditStyle(ACol, ARow: Longint): TEditStyle; override; |
 |
procedure FontChanged(Sender: TObject); |
 |
function GetCaptionFlags(const ACol, ARow: integer) : UINT; virtual; |
 |
function GetCellFlags(const ACol, ARow: integer): UINT; virtual; |
 |
function GetCells(ACol, ARow: Integer): string; |
 |
function GetFixedCols : integer; |
 |
function IsCaptionCell(ACol, ARow: integer): boolean; virtual; abstract; |
 |
function SelectCell(ACol, ARow: Longint): Boolean; override; |
 |
function ShouldAdujstColWidths(ACol: integer): boolean; virtual; abstract; |
 |
procedure AdjustColWidths(const ACol: integer); virtual; abstract; |
 |
procedure ColWidthsChanged; override; |
 |
procedure DoExit; override; |
 |
procedure DrawCell(ACol, ARow: Longint; ARect: TRect; AState: TGridDrawState); override; |
 |
procedure DrawCheckBoxCell(ACol, ARow: Integer; ARect: TRect; AState: TGridDrawState); |
 |
procedure DrawCaptionCell(ACol, ARow: Integer; ARect: TRect; AState: TGridDrawState); virtual; |
 |
procedure DrawOrdinaryCell(ACol, ARow: Integer; ARect: TRect; AState: TGridDrawState); |
 |
procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override; |
 |
procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override; |
 |
procedure Resize; override; |
 |
procedure SetCells(ACol, ARow: Integer; const Value: string); virtual; |
 |
procedure SetColorSelectedColumnOrRow(const Value: boolean); |
 |
procedure SetEditText(ACol, ARow: Longint; const Value: string); override; |
 |
procedure SetFixedCols(const Value : integer); |
 |
function RequiredCellWidth(const ACol, ARow: integer): integer; |
 |
procedure SetEnabled(Value: boolean); override; |
 |
procedure TopLeftChanged(); override; |
 |
procedure KeyDown(var Key: Word; Shift: TShiftState); override; |
 |
procedure KeyUp(var Key: Word; Shift: TShiftState); override; |
 |
procedure KeyPress(var Key: Char); override; |
 |
function WidthNeededToFitText(const ACol, ARow: Integer): integer; |
 |
procedure SelectAll; |
 |
procedure ClearSelection; |
 |
procedure CopyAllCellsToClipboard; |
 |
procedure CopySelectedCellsToClipboard; |
 |
procedure UpdateEditor; |
 |
procedure BeginUpdate; virtual; |
 |
procedure EndUpdate; virtual; |
 |
constructor Create(AOwner: TComponent); override; |
 |
destructor Destroy; override; |
 |
function DistributeText(const ACol, ARow: integer; CellContents: string): boolean; |
 |
procedure InsertColumn(ACol: Integer); virtual; |
 |
procedure InsertRow(ARow: Integer); virtual; |
 |
function IsSelectedCell(ACol, ARow: Integer): boolean; |
 |
procedure AddRangeSelection(Selection: TGridRect); |
 |
procedure SettingsChanged(Sender: TObject; Flag: Integer; const Section: string; var Result: Longint); |
 |
property dgColumn : integer read FdgColumn write SetdgColumn; |
 |
property dgRow : integer read FdgRow write SetdgRow; |
 |
property DistributingText: boolean read FDistributingText; |
 |
property Cells[ACol,ARow:Integer]: string read GetCells write SetCells; |
 |
property CellVisible[ACol,ARow:Integer]: boolean read GetCellVisible; |
 |
property ColVisible[ACol:Integer]: boolean read GetColVisible; |
 |
property Checked[constACol,ARow:integer]: boolean read GetChecked
write SetChecked; |
 |
property CheckState[constACol,ARow:integer]: TCheckBoxState
read GetCheckState write SetCheckState; |
 |
property Drawing: boolean read FDrawing; |
 |
property State[constACol,ARow:integer]: TCheckBoxState read GetCheckState
write SetCheckState; |
 |
property Selection: TGridRect read GetSelection write SetSelection; |
 |
property RangeSelection: TGridRect read GetRangeSelection; |
 |
property Column: integer read FdgColumn write SetColumn; |
 |
property Row: integer read FdgRow write SetRow; |
 |
property UseSpecialFormat[ACol,ARow:Integer]: boolean
read GetUseSpecialFormat write SetUseSpecialFormat; |
 |
property SpecialFormat[ACol,ARow:Integer]: TRbwColumnFormat4
read GetSpecialFormat write SetSpecialFormat; |
 |
property ItemIndex[constACol,ARow:integer]: integer read GetItemIndex
write SetItemIndex; |
 |
property ExtendedAutoDistributeText: boolean
read FExtendedAutoDistributeText write SetExtendedAutoDistributeText; |
 |
property AutoMultiEdit: boolean read FAutoMultiEdit write FAutoMultiEdit; |
 |
property AutoDistributeText: boolean read FAutoDistributeText
write FAutoDistributeText; |
 |
property AutoIncreaseColCount: boolean read FAutoIncreaseColCount
write SetAutoIncreaseColCount; |
 |
property AutoIncreaseRowCount: boolean read FAutoIncreaseRowCount
write FAutoIncreaseRowCount; |
 |
property ColCount: Longint read GetColCount write SetColCount default 5; |
 |
property FixedCols : integer read GetFixedCols write SetFixedCols; |
 |
property Options: TGridOptions read FOptions write SetOptions
default [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine,
goRangeSelect]; |
 |
property RowCount: Longint read GetRowCount write SetRowCount default 5; |
 |
property SelectedRowOrColumnColor : TColor read FSelectedRowOrColumnColor
write SetSelectedRowOrColumnColor; |
 |
property UnselectableColor : TColor read FUnselectableColor
write SetUnselectableColor; |
 |
property OnBeforeDrawCell: TBeforeDrawCellEvent read FOnBeforeDrawCell
write FOnBeforeDrawCell; |
 |
property OnButtonClick: TGridButtonEvent read FOnButtonClick
write FOnButtonClick; |
 |
property OnColMoving: TCheckMoveEvent read FOnColMoving write FOnColMoving; |
 |
property OnColSize: TColSizeEvent read FOnColSize write FOnColSize; |
 |
property OnRowMoving: TCheckMoveEvent read FOnRowMoving write FOnRowMoving; |
 |
property OnStateChange: TChangeCheckEvent read FOnStateChange
write FOnStateChange; |
 |
property ColorRangeSelection: boolean read FColorRangeSelection
write SetColorRangeSelection; |
 |
property RangeSelectionColor: TColor read FRangeSelectionColor
write SetRangeSelectionColor default clBlue; |
 |
property RangeSelectionFontColor: TColor read FRangeSelectionFontColor
write SetRangeSelectionFontColor default clWhite; |
 |
property OnVerticalScroll: TNotifyEvent read FOnVScroll write FOnVScroll; |
 |
property OnHorizontalScroll: TNotifyEvent read FOnHScroll write FOnHScroll; |
 |
property OnDistributeTextProgress: TDistributeTextProgressEvent
read FOnDistributeTextProgress write FOnDistributeTextProgress; |