![]() |
Form Show;
Also folgende Frage
die Form2 wird in der Form1 auf einem Panel geöffnet
Delphi-Quellcode:
jetzt wird die Form3 in der Form1 (Panel1) geöffnet usw.
begin
Form2 := TForm2.Create(Form1.Panel1); Form2.Parent := Form1.Panel1; Form2.SetBounds(10,10,Form2.Width, Form2.Height); Form2.FormStyle := fsNormal; Form2.Visible := true; end; jetzt möchte ich zurück zur form2
Delphi-Quellcode:
wieso wird sie erneut geöffnet? habe sie jetzt zweimal geöffnet :roll:
Form2.Parent := Form1.Panel1;
Form2.Show; möchte mir aber nur die geöffnete Form aus dem hintergrund ansehen? |
AW: Form Show;
Also ich seh da nirgendwo etwas von einer Form3.
Delphi-Quellcode:
Ich würde aber fast wetten, dass jemand (DU) die Form2 auch nochmal automatisch erzeugen lässt. (siehe Projektoptionen oder Projektquellcode/DPR)
begin
Assert(not Assigned(Form2)); Form2 := TForm2.Create(Form1.Panel1); Es ist grundsätzlich eine saublöde Idee diese vordefinierten globalen Variablen für manuell erzeugte Forms zu verwenden. |
AW: Form Show;
Zitat:
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:08 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