![]() |
Wie rufe ich statt eine TForm ein TFrame auf?
Wie rufe ich statt eine TForm(Form1.Showmodal) ein TFrame auf?
|
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; |
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 |
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?
|
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?
|
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 |
Re: Wie rufe ich statt eine TForm ein TFrame auf?
Zitat:
![]() |
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