Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi VirtualTreeView: Zugriff auf einzelnen Node (https://www.delphipraxis.net/102435-virtualtreeview-zugriff-auf-einzelnen-node.html)

generic 2. Nov 2007 14:19

Re: VirtualTreeView: Zugriff auf einzelnen Node
 
Zitat:

Zitat von MCXSC
Aber wie kann ich denn die kompletten Node in der VST durchlaufen

IterateSubtree geht sehr gut dazu
brauchst nur eine callback funktion schreiben.

Delphi-Quellcode:
function TBaseVirtualTree.IterateSubtree(Node: PVirtualNode; Callback: TVTGetNodeProc; Data: Pointer;
  Filter: TVirtualNodeStates = []; DoInit: Boolean = False; ChildNodesOnly: Boolean = False): PVirtualNode;

// Iterates through the all children and grandchildren etc. of Node (or the entire tree if Node = nil)
// and calls for each node the provided callback method (which must not be empty).
// Filter determines which nodes to consider (an empty set denotes all nodes).
// If DoInit is True then nodes which aren't initialized yet will be initialized.
// Note: During execution of the callback the application can set Abort to True. In this case the iteration is stopped
//       and the last accessed node (the one on which the callback set Abort to True) is returned to the caller.
//       Otherwise (no abort) nil is returned.
Callback:
Delphi-Quellcode:
procedure(Sender: TBaseVirtualTree; Node: PVirtualNode; Data: Pointer; var Abort: Boolean) of object;

MCXSC 5. Nov 2007 21:37

Re: VirtualTreeView: Zugriff auf einzelnen Node
 
Super vielen Dank, funzt!

Hab die Function von M. Hassmann genommen, läuft prima!^^


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:01 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz