Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Formulardarstellung (https://www.delphipraxis.net/113290-formulardarstellung.html)

Logan 5. Mai 2008 20:05


Formulardarstellung
 
Hiho,
ich habe folgendes Problem (vereinfacht):
Wenn ein Zustand 1 eintritt, dann möchte ich das Formular A anzeigen lassen, 2/B analog dazu :)

Ich weiß, dass es ein Hauptformular gibt (bei mir Formular A):
Wenn ich im FormCreate ein B.showModal mache bekomme ich eine Fehlermeldung?

Kann mir einer erklären, wie ich das Problem lösen könnte?!
Bin über jede Hilfe dankbar!

MfG
Logan

mkinzler 5. Mai 2008 20:07

Re: Formulardarstellung
 
Mach das nicht im Create

Logan 5. Mai 2008 20:09

Re: Formulardarstellung
 
Sorry, wie meinst du das?

Fussball-Robby 5. Mai 2008 20:10

Re: Formulardarstellung
 
Das Form2.ShowModal soll nicht ins FormCreate sondern z.B. ins FormShow

Edit: Besser wohl ins OnActivate, da die andere Form sonst noch nicht sichtbar ist.

Logan 5. Mai 2008 20:15

Re: Formulardarstellung
 
Klappt!
THX!!!


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:58 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 by Thomas Breitkreuz