Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Wie rufe ich statt eine TForm ein TFrame auf? (https://www.delphipraxis.net/45145-wie-rufe-ich-statt-eine-tform-ein-tframe-auf.html)

smart 30. Apr 2005 14:22


Wie rufe ich statt eine TForm ein TFrame auf?
 
Wie rufe ich statt eine TForm(Form1.Showmodal) ein TFrame auf?

BenjaminH 30. Apr 2005 14:24

Re: Wie rufe ich statt eine TForm ein TFrame auf?
 
Frames müssen in die Form eingebunden werden, also so ungefähr:
Delphi-Quellcode:
Frame:=TFrame.Create;
Frame.Parent:=Form1;
Frame.Show;

alcaeus 30. Apr 2005 14:24

Re: Wie rufe ich statt eine TForm ein TFrame auf?
 
Hallo smart,

du erstellst das Frame (Frame1.Create(self)) und setzt ein Panel oder sonstwas als Parent. Dann noch visible auf true, und du siehst das Frame auf dem Panel ;)

Greetz
alcaeus

smart 30. Apr 2005 14:34

Re: Wie rufe ich statt eine TForm ein TFrame auf?
 
Alles Klar, vielen Dank. Kann man auch Frames mit Titelleiste erzeugen, wie zB. eine Form?

smart 30. Apr 2005 14:37

Re: Wie rufe ich statt eine TForm ein TFrame auf?
 
Wenn ich zuvor auf dem Frame ein Button platziert habe, ist er bei diesem Aufruf verschwunden. Was mache ich falsch?

alcaeus 30. Apr 2005 14:38

Re: Wie rufe ich statt eine TForm ein TFrame auf?
 
Hallo smart,

ich denke nicht. Evtl. kannst du aber auch eine Form auf ein Panel legen. Dazu einfach die Form erstellen und ein Panel als Parent setzen.

Greetz
alcaeus

Matze 30. Apr 2005 14:52

Re: Wie rufe ich statt eine TForm ein TFrame auf?
 
Zitat:

Zitat von smart
Wenn ich zuvor auf dem Frame ein Button platziert habe, ist er bei diesem Aufruf verschwunden. Was mache ich falsch?

Ich habe es damals testweise so gelöst, das geht ohne Probleme. Vielleicht hilft's dir etwas.

smart 30. Apr 2005 15:00

Re: Wie rufe ich statt eine TForm ein TFrame auf?
 
Vielen Dank, Matze! Das dachte ich mir schon. Hatte gehofft eine einfachere Lösung zu finden.


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:10 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