[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Grids' (#lcl)

TVirtualGrid

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TVirtualGrid - an array of rows and columns containing data, which never gets displayed

Declaration

Source position: grids.pas line 321

type TVirtualGrid = class

protected

  procedure doDestroyItem();

  

doDestroyItem - method for destroying an Item at the given Row and Column location

  procedure doNewItem();

  

doNewItem - method for producing a new item at the given location specified by Row, Col

  procedure DeleteColRow();

  

DeleteColRow - remove either a column or a row, depending on the value of IsColumn

  procedure MoveColRow();

  

MoveColRow - move either a column or a row (depending on value of IsColumn) at FromIndex to the location ToIndex

  procedure ExchangeColRow();

  

ExchangeColRow - exchange either the current column or row (depending on the value of IsColumn) with the entity specified by WithIndex

  procedure InsertColRow();

  

InsertColRow - insert either a column or a row (depending on value of IsColumn) at the specified index position

  procedure DisposeCell(); virtual;

  

DisposeCell - dispose of the resources and pointer for the given cell

  procedure DisposeColRow(); virtual;

  

DisposeColRow - dispose of the specified row or column, freeing its pointer

public

  constructor Create;

  

Create - constructor for TVirtualGrid: calls inherited Create then creates arrays of Cells, Columns and Rows; forms links for actions and event handlers

  destructor Destroy; override;

  

Destroy - destructor for TVirtualGrid: frees rows, columns and cells, then cals inherited Destroy

  procedure Clear;

  

Clear the grid

  function GetDefaultCell;

  

GetDefaultCell - returns the properties of the default cell

  function GetDefaultColRow;

  

GetDefaultColRow - returns the properties of the default column and row

  property ColCount: Integer; [rw]

  

ColCount - the number of columns in the current grid

  property RowCount: Integer; [rw]

  

RowCount - the number of rows in the current grid

  property Celda: PCellProps; [rw]

  

Celda - the current cell as defined by its column and row

  property Cols: PColRowProps; [rw]

  

Cols - the columns to which the grid applies

  property Rows: PColRowProps; [rw]

  

The Rows to which the grid applies

end;

Inheritance

TVirtualGrid

  

TVirtualGrid - an array of rows and columns containing data, which never gets displayed

|

TObject

The latest version of this document can be found at lazarus-ccr.sourceforge.net.