ParentForm herausfinden
Hallo!
Ich habe ein Frame mit einer ausklappbaren Option, das heißt, wenn ich diese Option ausklappe, wird das Frame größer. Jetzt würde ich gerne in dem Fall die dazugehörige Form vergrößern, allerdings kenne ich die Form zur Entwicklungszeit nicht. Ich habe versucht die Form so herauszufinden:
Delphi-Quellcode:
Aber damit finde ich nur das Child der Form...
prnt := Parent;
while prnt.Parent <> nil do prnt := prnt.Parent; Grüße blablab |
AW: ParentForm herausfinden
Versuch mal
Delphi-Quellcode:
prnt := Parent;
while Assigned(prnt) and not (prnt is TCustomForm) do prnt := prnt.Parent; |
AW: ParentForm herausfinden
Juhu, es funktioniert :-D
Danke! |
AW: ParentForm herausfinden
In der Unit Forms gibt's auch noch GetParentForm und ValidParentForm.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:52 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz