![]() |
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 |
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