![]() |
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
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:51 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