Description | Hierarchy | Fields | Methods | Properties |
type TGUITable = class(TGUIElement)
Default list box GUI element.
![]() |
function AddRow(RowIndex: LongWord): LongWord; inline; |
![]() |
function GetCellData(RowIndex, ColumnIndex: LongWord): Pointer; inline; |
![]() |
function GetCellText(RowIndex, ColumnIndex: LongWord): StringType; inline; |
![]() |
procedure AddColumn(const Caption: StringType; ColumnIndex: LongInt=-1); inline; |
![]() |
procedure Clear; inline; |
![]() |
procedure ClearRows; inline; |
![]() |
procedure OrderRows(ColumnIndex: LongInt = -1; OrderingMode: TGUIOrderingMode=omNone); inline; |
![]() |
procedure RemoveColumn(ColumnIndex: LongWord); inline; |
![]() |
procedure RemoveRow(RowIndex: LongWord); inline; |
![]() |
procedure SetActiveColumn(NColumn: LongInt; DoOrder: Boolean); overload; inline; |
![]() |
procedure SetCellColor(RowIndex, ColumnIndex: LongWord; Color: TARGBColor); inline; |
![]() |
procedure SetCellData(RowIndex, ColumnIndex: LongWord; Data: Pointer); inline; |
![]() |
procedure SetCellText(RowIndex, ColumnIndex: LongWord; const Text: StringType); overload; inline; |
![]() |
procedure SetCellText(RowIndex, ColumnIndex: LongWord; const Text: StringType; Color: TARGBColor); overload; inline; |
![]() |
procedure SetColumnOrdering(ColumnIndex: LongWord; OrderingMode: TGUIColumnOrdering); inline; |
![]() |
procedure SetColumnWidth(ColumnIndex, Width: LongWord); inline; |
![]() |
procedure SwapRows(Index1, Index2: LongWord); inline; |
![]() |
property ActiveColumn: LongInt read GetActiveColumn write SetActiveColumn; |
![]() |
property ActiveColumnOrdering: TGUIOrderingMode read GetActiveColumnOrdering
write SetActiveColumnOrdering; |
![]() |
property ColumnCount: LongInt read GetColumnCount; |
![]() |
property DrawFlags: LongWord read GetDrawFlags write SetDrawFlags; |
![]() |
property ResizableColumns: Boolean read HasResizableColumns write SetResizableColumns; |
![]() |
property RowCount: LongInt read GetRowCount; |
![]() |
property SelectedRow: LongInt read GetSelected write SetSelected; |
![]() |
function GetCellData(RowIndex, ColumnIndex: LongWord): Pointer; inline; |
Returns the user-defined data associated with a cell. Parameters
ReturnsThe data pointer. |
![]() |
function GetCellText(RowIndex, ColumnIndex: LongWord): StringType; inline; |
Returns the content of a cell. Parameters
ReturnsThe content. |
![]() |
procedure AddColumn(const Caption: StringType; ColumnIndex: LongInt=-1); inline; |
Adds a new column. Parameters
|
![]() |
procedure Clear; inline; |
Clears the table, deleting all rows and columns |
![]() |
procedure ClearRows; inline; |
Deletes all rows, but preserves the columns |
![]() |
procedure OrderRows(ColumnIndex: LongInt = -1; OrderingMode: TGUIOrderingMode=omNone); inline; |
Sorts the table by a column. Parameters
|
![]() |
procedure RemoveColumn(ColumnIndex: LongWord); inline; |
Removes a column from the table. Parameters
|
![]() |
procedure RemoveRow(RowIndex: LongWord); inline; |
Removes a row from the table. Parameters
|
![]() |
procedure SetActiveColumn(NColumn: LongInt; DoOrder: Boolean); overload; inline; |
Makes a column active. This will trigger an ordering process. Parameters |
![]() |
procedure SetCellColor(RowIndex, ColumnIndex: LongWord; Color: TARGBColor); inline; |
Sets a cell's text color. Parameters
|
![]() |
procedure SetCellText(RowIndex, ColumnIndex: LongWord; const Text: StringType); overload; inline; |
Sets a cell's text. Parameters
|
![]() |
procedure SetCellText(RowIndex, ColumnIndex: LongWord; const Text: StringType; Color: TARGBColor); overload; inline; |
Sets a cell's text and text color. Parameters
|
![]() |
procedure SetColumnOrdering(ColumnIndex: LongWord; OrderingMode: TGUIColumnOrdering); inline; |
This tells the table control which ordering mode should be used when a column header is clicked. Parameters
|
![]() |
procedure SetColumnWidth(ColumnIndex, Width: LongWord); inline; |
Sets the width of a column. Parameters
|
![]() |
procedure SwapRows(Index1, Index2: LongWord); inline; |
Swaps two rows. |
![]() |
property ActiveColumn: LongInt read GetActiveColumn write SetActiveColumn; |
The currently active column header. |
![]() |
property ActiveColumnOrdering: TGUIOrderingMode read GetActiveColumnOrdering
write SetActiveColumnOrdering; |
Specifies the method used to sort the column when OrderRows is called. |
![]() |
property ColumnCount: LongInt read GetColumnCount; |
The currrent number of columns. |
![]() |
property DrawFlags: LongWord read GetDrawFlags write SetDrawFlags; |
A combination of TGUITableDrawFlags specifying the layout. |
![]() |
property ResizableColumns: Boolean read HasResizableColumns write SetResizableColumns; |
Specifies whether the column width can be adjusted by the user using drag'n'drop. |
![]() |
property RowCount: LongInt read GetRowCount; |
The current number of rows. |
![]() |
property SelectedRow: LongInt read GetSelected write SetSelected; |
The index of the selected row. |