Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Toutline Oberordnernummer Ermitteln (https://www.delphipraxis.net/109447-toutline-oberordnernummer-ermitteln.html)

DerMario 1. Mär 2008 16:10


Toutline Oberordnernummer Ermitteln
 
hallo,

also ich habe eine Toutline in der ich mit der methode addobject einen "ordner" und mit addchildobjekt mehrere dateinamen eigefügt habe.
meine frage ist wenn ich dann irgend eine datei in dem ordner selektiert habe möchte ich wissen welche nummer der oberordner hat.
hier ein beispiel:

- [ORDNER]
____test1.txt
____test2.txt
____test3.txt
+ [ANDERER ORDNER]


wenn ich also z.b. auf test2.txt klicke würde ich gerne wissen welche nummer der ordner "[ORDNER]" hat?
weis jemand mit welchem befehl das heraus zu finden ist?

vielen dank im voraus
gruß Mario

toms 3. Mär 2008 05:22

Re: Toutline Oberordnernummer Ermitteln
 
Hallo

Schau dir mal diese Funktionen an

Delphi-Quellcode:
    property Parent: TOutlineNode read FParent;
    function getFirstChild: LongInt;
    function GetLastChild: LongInt;
    function GetNextChild(Value: LongInt): LongInt;
    function GetPrevChild(Value: LongInt): LongInt;
    property Index: LongInt read GetIndex;
    property Level: Cardinal read GetLevel write SetLevel;


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:36 Uhr.

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