Class TTreeNTNode (unit TreeNT)

Inherits from

TPersistent

Constructors


constructor Create(AOwner: TTreeNTNodes);

------------------------------------------------------------------------------


Functions

function AlphaSort: Boolean;

------------------------------------------------------------------------------

procedure Assign(Source: TPersistent);

------------------------------------------------------------------------------

procedure BeginUpdate;

------------------------------------------------------------------------------

procedure Collapse(Recurse: Boolean);

------------------------------------------------------------------------------

function CountEquals(N: integer): Boolean;

------------------------------------------------------------------------------

function CustomSort(SortProc: TTVCompare; Data: Longint): Boolean;

------------------------------------------------------------------------------

procedure Delete;

------------------------------------------------------------------------------

procedure DeleteChildren;

------------------------------------------------------------------------------

destructor Destroy;

------------------------------------------------------------------------------

function DisplayRect(TextOnly: Boolean): TRect;

------------------------------------------------------------------------------

function EditText: Boolean;

------------------------------------------------------------------------------

procedure EndEdit(Cancel: Boolean);

------------------------------------------------------------------------------

procedure EndUpdate;

------------------------------------------------------------------------------

procedure Expand(Recurse: Boolean);

------------------------------------------------------------------------------

function GetFirstChild: TTreeNTNode;

------------------------------------------------------------------------------

function GetHandle: HWND;

------------------------------------------------------------------------------

function GetLastChild: TTreeNTNode;

------------------------------------------------------------------------------

function GetNext: TTreeNTNode;

------------------------------------------------------------------------------

function GetNextChild(Value: TTreeNTNode): TTreeNTNode;

------------------------------------------------------------------------------

function GetNextSibling: TTreeNTNode;

------------------------------------------------------------------------------

function GetNextVisible: TTreeNTNode;

------------------------------------------------------------------------------

function GetPrev: TTreeNTNode;

------------------------------------------------------------------------------

function GetPrevChild(Value: TTreeNTNode): TTreeNTNode;

------------------------------------------------------------------------------

function GetPrevSibling: TTreeNTNode;

------------------------------------------------------------------------------

function GetPrevVisible: TTreeNTNode;

------------------------------------------------------------------------------

function HasAsParent(Value: TTreeNTNode): Boolean;

------------------------------------------------------------------------------

function IndexOf(Value: TTreeNTNode): Integer;

------------------------------------------------------------------------------

function IsUpdating: Boolean;

------------------------------------------------------------------------------

procedure MakeVisible;

------------------------------------------------------------------------------

procedure MoveTo(Destination: TTreeNTNode; Mode: TNodeAttachMode);

------------------------------------------------------------------------------

procedure ExpandItem(Expand: Boolean; Recurse: Boolean);

------------------------------------------------------------------------------

function GetAbsoluteIndex: Integer;

------------------------------------------------------------------------------

function GetChecked: Boolean;

------------------------------------------------------------------------------

function GetChildren: Boolean;

------------------------------------------------------------------------------

function GetCount: Integer;

------------------------------------------------------------------------------

function GetCut: Boolean;

------------------------------------------------------------------------------

function GetDropTarget: Boolean;

------------------------------------------------------------------------------

function GetExpanded: Boolean;

------------------------------------------------------------------------------

function GetExpandedOnce: Boolean;

------------------------------------------------------------------------------

function GetFocused: Boolean;

------------------------------------------------------------------------------

function GetFont: TFont;

------------------------------------------------------------------------------

function GetIndex: Integer;

------------------------------------------------------------------------------

function GetItem(Index: Integer): TTreeNTNode;

------------------------------------------------------------------------------

function GetLevel: Integer;

------------------------------------------------------------------------------

function GetParent: TTreeNTNode;

------------------------------------------------------------------------------

function GetSelected: Boolean;

------------------------------------------------------------------------------

function GetState(NodeState: TNodeState): Boolean;

------------------------------------------------------------------------------

function GetTreeNT: TCustomTreeNT;

------------------------------------------------------------------------------

function HasVisibleParent: Boolean;

------------------------------------------------------------------------------

procedure InternalMove(ParentNode,Node: TTreeNTNode; HItem: HTreeItem; AddMode: TAddMode);

------------------------------------------------------------------------------

function IsEqual(Node: TTreeNTNode): Boolean;

------------------------------------------------------------------------------

function IsNodeVisible: Boolean;

------------------------------------------------------------------------------

procedure ReadData(Stream: TStream; Info: PNodeInfo);

------------------------------------------------------------------------------

procedure SetChecked(Value: Boolean);

------------------------------------------------------------------------------

procedure SetChildren(Value: Boolean);

------------------------------------------------------------------------------

procedure SetColor(AValue: TColor);

------------------------------------------------------------------------------

procedure SetCut(Value: Boolean);

------------------------------------------------------------------------------

procedure SetData(Value: Pointer);

------------------------------------------------------------------------------

procedure SetDropTarget(Value: Boolean);

------------------------------------------------------------------------------

procedure SetExpanded(Value: Boolean);

------------------------------------------------------------------------------

procedure SetFocused(Value: Boolean);

------------------------------------------------------------------------------

procedure SetFont(AFont: TFont);

------------------------------------------------------------------------------

procedure SetImageIndex(Value: Integer);

------------------------------------------------------------------------------

procedure SetItem(Index: Integer; Value: TTreeNTNode);

------------------------------------------------------------------------------

procedure SetOverlayIndex(Value: Integer);

------------------------------------------------------------------------------

procedure SetParentColor(AValue: Boolean);

------------------------------------------------------------------------------

procedure SetParentFont(AValue: Boolean);

------------------------------------------------------------------------------

procedure SetSelected(Value: Boolean);

------------------------------------------------------------------------------

procedure SetSelectedIndex(Value: Integer);

------------------------------------------------------------------------------

procedure SetStateIndex(Value: Integer);

------------------------------------------------------------------------------

procedure SetText(const S: String);

------------------------------------------------------------------------------

procedure WriteData(Stream: TStream; Info: PNodeInfo);

------------------------------------------------------------------------------

Properties

property AbsoluteIndex : Integer


property Checked : Boolean


property Color : TColor


property Count : Integer


property Cut : Boolean


property Data : Pointer


property Deleting : Boolean


property DropTarget : Boolean


property Expanded : Boolean


property ExpandedOnce : Boolean


property Focused : Boolean


property Font : TFont


property Handle : HWND


property HasChildren : Boolean


property ImageIndex : Integer


property Index : Integer


property IsVisible : Boolean


property Item : TTreeNTNode


property ItemId : HTreeItem


property Level : Integer


property OverlayIndex : Integer


property Owner : TTreeNTNodes


property Parent : TTreeNTNode


property ParentColor : Boolean


property ParentFont : Boolean


property Selected : Boolean


property SelectedIndex : Integer


property StateIndex : Integer


property Text : String


property TreeView : TCustomTreeNT


Events

Variables

FColor : TColor;


FData : Pointer;


FDeleting : Boolean;


FFont : TFont;


FImageIndex : Integer;


FItemId : HTreeItem;


FItemized : Boolean;


FOverlayIndex : Integer;


FOwner : TTreeNTNodes;


FParentColor : Boolean;


FParentFont : Boolean;


FProgramCollapse : SmallInt;


FProgramExpand : SmallInt;


FSelectedIndex : Integer;


FStateIndex : Integer;


FText : String;


FUpdateCount : Integer;



Constructors


constructor Create(AOwner: TTreeNTNodes);

------------------------------------------------------------------------------


Functions


function AlphaSort: Boolean;

------------------------------------------------------------------------------


procedure Assign(Source: TPersistent);

------------------------------------------------------------------------------


procedure BeginUpdate;

------------------------------------------------------------------------------


procedure Collapse(Recurse: Boolean);

------------------------------------------------------------------------------


function CountEquals(N: integer): Boolean;

------------------------------------------------------------------------------


function CustomSort(SortProc: TTVCompare; Data: Longint): Boolean;

------------------------------------------------------------------------------


procedure Delete;

------------------------------------------------------------------------------


procedure DeleteChildren;

------------------------------------------------------------------------------


destructor Destroy;

------------------------------------------------------------------------------


function DisplayRect(TextOnly: Boolean): TRect;

------------------------------------------------------------------------------


function EditText: Boolean;

------------------------------------------------------------------------------


procedure EndEdit(Cancel: Boolean);

------------------------------------------------------------------------------


procedure EndUpdate;

------------------------------------------------------------------------------


procedure Expand(Recurse: Boolean);

------------------------------------------------------------------------------


function GetFirstChild: TTreeNTNode;

------------------------------------------------------------------------------


function GetHandle: HWND;

------------------------------------------------------------------------------


function GetLastChild: TTreeNTNode;

------------------------------------------------------------------------------


function GetNext: TTreeNTNode;

------------------------------------------------------------------------------


function GetNextChild(Value: TTreeNTNode): TTreeNTNode;

------------------------------------------------------------------------------


function GetNextSibling: TTreeNTNode;

------------------------------------------------------------------------------


function GetNextVisible: TTreeNTNode;

------------------------------------------------------------------------------


function GetPrev: TTreeNTNode;

------------------------------------------------------------------------------


function GetPrevChild(Value: TTreeNTNode): TTreeNTNode;

------------------------------------------------------------------------------


function GetPrevSibling: TTreeNTNode;

------------------------------------------------------------------------------


function GetPrevVisible: TTreeNTNode;

------------------------------------------------------------------------------


function HasAsParent(Value: TTreeNTNode): Boolean;

------------------------------------------------------------------------------


function IndexOf(Value: TTreeNTNode): Integer;

------------------------------------------------------------------------------


function IsUpdating: Boolean;

------------------------------------------------------------------------------


procedure MakeVisible;

------------------------------------------------------------------------------


procedure MoveTo(Destination: TTreeNTNode; Mode: TNodeAttachMode);

------------------------------------------------------------------------------


procedure ExpandItem(Expand: Boolean; Recurse: Boolean);

------------------------------------------------------------------------------


function GetAbsoluteIndex: Integer;

------------------------------------------------------------------------------


function GetChecked: Boolean;

------------------------------------------------------------------------------


function GetChildren: Boolean;

------------------------------------------------------------------------------


function GetCount: Integer;

------------------------------------------------------------------------------


function GetCut: Boolean;

------------------------------------------------------------------------------


function GetDropTarget: Boolean;

------------------------------------------------------------------------------


function GetExpanded: Boolean;

------------------------------------------------------------------------------


function GetExpandedOnce: Boolean;

------------------------------------------------------------------------------


function GetFocused: Boolean;

------------------------------------------------------------------------------


function GetFont: TFont;

------------------------------------------------------------------------------


function GetIndex: Integer;

------------------------------------------------------------------------------


function GetItem(Index: Integer): TTreeNTNode;

------------------------------------------------------------------------------


function GetLevel: Integer;

------------------------------------------------------------------------------


function GetParent: TTreeNTNode;

------------------------------------------------------------------------------


function GetSelected: Boolean;

------------------------------------------------------------------------------


function GetState(NodeState: TNodeState): Boolean;

------------------------------------------------------------------------------


function GetTreeNT: TCustomTreeNT;

------------------------------------------------------------------------------


function HasVisibleParent: Boolean;

------------------------------------------------------------------------------


procedure InternalMove(ParentNode,Node: TTreeNTNode; HItem: HTreeItem; AddMode: TAddMode);

------------------------------------------------------------------------------


function IsEqual(Node: TTreeNTNode): Boolean;

------------------------------------------------------------------------------


function IsNodeVisible: Boolean;

------------------------------------------------------------------------------


procedure ReadData(Stream: TStream; Info: PNodeInfo);

------------------------------------------------------------------------------


procedure SetChecked(Value: Boolean);

------------------------------------------------------------------------------


procedure SetChildren(Value: Boolean);

------------------------------------------------------------------------------


procedure SetColor(AValue: TColor);

------------------------------------------------------------------------------


procedure SetCut(Value: Boolean);

------------------------------------------------------------------------------


procedure SetData(Value: Pointer);

------------------------------------------------------------------------------


procedure SetDropTarget(Value: Boolean);

------------------------------------------------------------------------------


procedure SetExpanded(Value: Boolean);

------------------------------------------------------------------------------


procedure SetFocused(Value: Boolean);

------------------------------------------------------------------------------


procedure SetFont(AFont: TFont);

------------------------------------------------------------------------------


procedure SetImageIndex(Value: Integer);

------------------------------------------------------------------------------


procedure SetItem(Index: Integer; Value: TTreeNTNode);

------------------------------------------------------------------------------


procedure SetOverlayIndex(Value: Integer);

------------------------------------------------------------------------------


procedure SetParentColor(AValue: Boolean);

------------------------------------------------------------------------------


procedure SetParentFont(AValue: Boolean);

------------------------------------------------------------------------------


procedure SetSelected(Value: Boolean);

------------------------------------------------------------------------------


procedure SetSelectedIndex(Value: Integer);

------------------------------------------------------------------------------


procedure SetStateIndex(Value: Integer);

------------------------------------------------------------------------------


procedure SetText(const S: String);

------------------------------------------------------------------------------


procedure WriteData(Stream: TStream; Info: PNodeInfo);

------------------------------------------------------------------------------


Properties


property AbsoluteIndex : Integer


property Checked : Boolean


property Color : TColor


property Count : Integer


property Cut : Boolean


property Data : Pointer


property Deleting : Boolean


property DropTarget : Boolean


property Expanded : Boolean


property ExpandedOnce : Boolean


property Focused : Boolean


property Font : TFont


property Handle : HWND


property HasChildren : Boolean


property ImageIndex : Integer


property Index : Integer


property IsVisible : Boolean


property Item : TTreeNTNode


property ItemId : HTreeItem


property Level : Integer


property OverlayIndex : Integer


property Owner : TTreeNTNodes


property Parent : TTreeNTNode


property ParentColor : Boolean


property ParentFont : Boolean


property Selected : Boolean


property SelectedIndex : Integer


property StateIndex : Integer


property Text : String


property TreeView : TCustomTreeNT


Events


Variables


FColor : TColor;


FData : Pointer;


FDeleting : Boolean;


FFont : TFont;


FImageIndex : Integer;


FItemId : HTreeItem;


FItemized : Boolean;


FOverlayIndex : Integer;


FOwner : TTreeNTNodes;


FParentColor : Boolean;


FParentFont : Boolean;


FProgramCollapse : SmallInt;


FProgramExpand : SmallInt;


FSelectedIndex : Integer;


FStateIndex : Integer;


FText : String;


FUpdateCount : Integer;