Class TXStrGrid (unit XStrGrds)

Inherits from

TStringGrid

Constructors


constructor Create(AOwner: TComponent);

Public declarations


Functions

procedure Deselect;


procedure MoveTo(ACol, ARow: longint);


procedure Loaded;

Protected declarations

procedure DrawCell(ACol, ARow : Longint; ARect : TRect; AState : TGridDrawState);


function GetAlign:TAlignment;


procedure InitHCol;


procedure InitHRow;


procedure SetAlign(const Value: TAlignment);


procedure SetCells(ACol, ARow: Integer; const Value: string);


procedure SetGrid3D(Value : boolean);

3D look cells

procedure SetHCol(Value: TStrings);


procedure SetHRow(Value: TStrings);


Properties

property Alignment : TAlignment


property Grid3D : boolean


property HCol : TStrings

Published declarations

property HRow : TStrings


property Cells :


Events

event OnGetAlignment : TGridAlignEvent


event OnGetCellColor : TGridColorEvent


Variables

FAlign : TAlignment;

Private declarations

FGrid3D : boolean;


FHCol : TStrings;


FHRow : TStrings;


FOnGetAlignment : TGridAlignEvent;


FOnGetCellColor : TGridColorEvent;



Constructors


constructor Create(AOwner: TComponent);

Public declarations


Functions


procedure Deselect;


procedure MoveTo(ACol, ARow: longint);


procedure Loaded;

Protected declarations


procedure DrawCell(ACol, ARow : Longint; ARect : TRect; AState : TGridDrawState);


function GetAlign:TAlignment;


procedure InitHCol;


procedure InitHRow;


procedure SetAlign(const Value: TAlignment);


procedure SetCells(ACol, ARow: Integer; const Value: string);


procedure SetGrid3D(Value : boolean);

3D look cells


procedure SetHCol(Value: TStrings);


procedure SetHRow(Value: TStrings);


Properties


property Alignment : TAlignment


property Grid3D : boolean


property HCol : TStrings

Published declarations


property HRow : TStrings


property Cells :


Events


event OnGetAlignment : TGridAlignEvent


event OnGetCellColor : TGridColorEvent


Variables


FAlign : TAlignment;

Private declarations


FGrid3D : boolean;


FHCol : TStrings;


FHRow : TStrings;


FOnGetAlignment : TGridAlignEvent;


FOnGetCellColor : TGridColorEvent;