Class TTreeListItem
Unit
Declaration
type TTreeListItem = class(TPersistent)
Description
This is an item which can contain subitems and items in the detail columns
Hierarchy
- TObject
- TPersistent
- TTreeListItem
Overview
Fields
![]() |
data:TItemDataRec; |
Methods
![]() |
constructor Create(const parent:TTreeListItem;const TreeListView:TTreeListView;const ACaption:string=''); overload; |
![]() |
function getBounds(column: longint):TRect; |
![]() |
function getMaxTextBounds(column: longint):TRect; |
![]() |
function GetItemAtPos(const listView:TTreeListView;const TestY:integer;var startY:integer):TTreeListItem; |
![]() |
function GetRecordItemAtPos(const listView:TTreeListView;TestX:integer):TTreeListRecordItem; |
![]() |
function GetMaxColumnWidth(const id:longint): longint; |
![]() |
procedure Expand; |
![]() |
procedure Collapse; |
![]() |
function GetNextItemIgnoringChildren:TTreeListItem; |
![]() |
function GetLastVisibleSubSubItem:TTreeListItem; |
![]() |
function GetLastSubSubItem:TTreeListItem; |
![]() |
function GetNextVisibleItem(Delta:longint=1):TTreeListItem; |
![]() |
function GetPrevVisibleItem(Delta:longint=1):TTreeListItem; |
![]() |
function GetNextItem():TTreeListItem; |
![]() |
function GetPrevItem():TTreeListItem; |
![]() |
function GetParentInList(List: TTreeListItems=nil):TTreeListItem; |
![]() |
procedure GetParentHierarchyStack(out stack:TItemHierarchyStack); |
![]() |
function GetNextFromHierarchyStack(var stack: TItemHierarchyStack; const mustBeVisible: boolean=false): TTreeListItem; |
![]() |
function ParentItems: TTreeListItems; |
![]() |
procedure Paint(const hierarchyStack: TItemHierarchyStack); |
![]() |
destructor Destroy; override; |
![]() |
function SeemsSelected:boolean; |
Properties
![]() |
property Parent: TTreeListItem read F_parent; |
![]() |
property TreeListView: TTreeListView read F_TreeListview; |
![]() |
property Indent: integer read F_Indent; |
![]() |
property Expanded: boolean read F_expanded write SetExpand; |
![]() |
property MouseSelected: boolean read F_MouseSelected write SetMouseSelected; |
![]() |
property RecordItemsText[i: Integer]: string read GetRecordItemsText write SetRecordItemsText; |
![]() |
property RecordItems: TRecordItemList read F_RecordItems write SetRecordItems; |
![]() |
property SubItems: TTreeListItems read F_SubItems write SetSubItems; |
![]() |
property ImageIndex: longint read F_ImageIndex write F_ImageIndex; |
![]() |
property ImageBitmap: graphics.TBitmap read F_ImageBitmap write F_ImageBitmap; |
![]() |
property Text: string read GetText write SetText; |
![]() |
property Selected: boolean read F_Selected write SetSelected; |
Description
Fields
![]() |
data:TItemDataRec; |
This value can be used to store arbitrary integer values |
Methods
![]() |
constructor Create(const parent:TTreeListItem;const TreeListView:TTreeListView;const ACaption:string=''); overload; |
This creates an item with given parent and caption in the given TreeListView |
![]() |
function getBounds(column: longint):TRect; |
This returns the size of the displayed item Returnsif column = -1 the size of the whole line is returned, otherwise the size of the given column |
![]() |
function getMaxTextBounds(column: longint):TRect; |
This returns the maximal size of the displayed text |
![]() |
function GetItemAtPos(const listView:TTreeListView;const TestY:integer;var startY:integer):TTreeListItem; |
This returns the item in the given TreeListView at the position TestY which is a sub item (or/of) self See also
|
![]() |
function GetRecordItemAtPos(const listView:TTreeListView;TestX:integer):TTreeListRecordItem; |
This returns the record item at the given position See also
|
![]() |
function GetMaxColumnWidth(const id:longint): longint; |
This returns the width of the largest record item in the column id of any sub item |
![]() |
procedure Expand; |
This expands this item, to show all subitems |
![]() |
procedure Collapse; |
This collapses this item, to hide all subitems |
![]() |
function GetNextItemIgnoringChildren:TTreeListItem; |
Returns the next item which is no sub item of this |
![]() |
function GetLastVisibleSubSubItem:TTreeListItem; |
Returns the latest visible item which is an (indirect) children of this |
![]() |
function GetLastSubSubItem:TTreeListItem; |
Returns the latest item which is an (indirect) children of this |
![]() |
function GetNextVisibleItem(Delta:longint=1):TTreeListItem; |
Returns the next visible item, or the Delta-th next item. Is Delta < 0 this is like a call to GetPrevVisibleItem |
![]() |
function GetPrevVisibleItem(Delta:longint=1):TTreeListItem; |
Returns the previous visible item, or the Delta-th previous item. Is Delta < 0 this is like a call to GetNextVisibleItem |
![]() |
function GetNextItem():TTreeListItem; |
Returns the next item |
![]() |
function GetPrevItem():TTreeListItem; |
Returns the previous item |
![]() |
function GetParentInList(List: TTreeListItems=nil):TTreeListItem; |
Returns the parent which is in the given list, or nil. |
![]() |
procedure GetParentHierarchyStack(out stack:TItemHierarchyStack); |
![]() |
function GetNextFromHierarchyStack(var stack: TItemHierarchyStack; const mustBeVisible: boolean=false): TTreeListItem; |
returns a stack you can use to enumerate all item iterative |
![]() |
function ParentItems: TTreeListItems; |
This returns the list containing the item |
![]() |
procedure Paint(const hierarchyStack: TItemHierarchyStack); |
This draws the item Parameters
|
![]() |
destructor Destroy; override; |
Destroy |
![]() |
function SeemsSelected:boolean; |
Returns if the items is drawn selected |
Properties
![]() |
property Parent: TTreeListItem read F_parent; |
This is a |
![]() |
property TreeListView: TTreeListView read F_TreeListview; |
This is the |
![]() |
property Indent: integer read F_Indent; |
Level of indentation |
![]() |
property Expanded: boolean read F_expanded write SetExpand; |
Specifies if the sub items are currently visible |
![]() |
property MouseSelected: boolean read F_MouseSelected write SetMouseSelected; |
Controls if this item is selected or not |
![]() |
property RecordItemsText[i: Integer]: string read GetRecordItemsText write SetRecordItemsText; |
Sets the value of the given column |
![]() |
property RecordItems: TRecordItemList read F_RecordItems write SetRecordItems; |
Items in the columns |
![]() |
property SubItems: TTreeListItems read F_SubItems write SetSubItems; |
Indented child items |
![]() |
property ImageIndex: longint read F_ImageIndex write F_ImageIndex; |
If this is > -1 then the image of the TreeListView.Images will be painted before this item |
![]() |
property Text: string read GetText write SetText; |
|
![]() |
property Selected: boolean read F_Selected write SetSelected; |
Controls if this item is |
Generated by PasDoc 0.16.0.