| [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 2816
type TTreeNodeExpandedState = class |
||
NodeText: String; |
|
NodeText - the text in the current node |
|
Childs - the children of the current node, as an AvgLvlTree |
|
procedure 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 |
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 |