| [Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TTreeNodeExpandedState - class to store and restore the expanded state of a TTreeView. The nodes are identified by their Text property.
Source position: comctrls.pp line 3824
type TTreeNodeExpandedState = class |
||
public |
||
NodeText: string; |
|
NodeText - the text in the current node |
Children: TAvlTree; |
|
Children - the children of the current node, as an AvgLvlTree |
constructor Create(); |
|
Create - constructor for the rest of the tree structure |
destructor Destroy; override; |
|
|
procedure Clear; |
|
Clear the nodes from the tree structure |
procedure CreateChildNodes(); |
|
CreateChildNodes - constructor for the offspring nodes |
procedure Apply(); |
|
Apply - continue reconstructing the tree structure by adding the remaining nodes in succession |
property OnGetNodeText: TTVGetNodeText; [rw] |
||
end; |
|
TTreeNodeExpandedState - class to store and restore the expanded state of a TTreeView. The nodes are identified by their Text property. |
|
| | | ||
TObject |
TTreeNodeExpandedState - class to store and restore the expanded state of a TTreeView. The nodes are identified by their Text property.
Usage example:
// save old expanded state
OldExpanded:=TTreeNodeExpandedState.Create(ATreeView);
... change a lot of nodes ...
// restore old expanded state
OldExpanded.Apply(ATreeView);
OldExpanded.Free;
| lazarus-ccr.sourceforge.net |