Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Modale Form die nicht die ganze Anwendung blockiert (https://www.delphipraxis.net/197496-modale-form-die-nicht-die-ganze-anwendung-blockiert.html)

colaflasche 10. Aug 2018 16:07

Delphi-Version: 10 Seattle

Modale Form die nicht die ganze Anwendung blockiert
 
Hallo Zusammen,

ich öffne aus meinem Hauptformular eine weitere Form mit Formstyle fsNormal:

Code:
with TUnterform.Create(Application) do
  show;
Daraus möchte ich eine Modale Form öffnen, das kann ich auch.
Diese blockiert dann meine komplette Anwendung. Gibt es auch einen Weg, dass die dann nur ihren Owner, als mein Formular vom Typ TUnterform blockiert und ich ein weiteres Formular aus dem Hauptformular öffnen kann?

Gruß Jan

Der schöne Günther 10. Aug 2018 16:11

AW: Modale Form die nicht die ganze Anwendung blockiert
 
Überleg doch mal wie das aussehen soll.

Hauptformular (1) öffnet Nebenformular (2) öffnet Popup (3). Du hast jetzt mittlerweile drei Fenster offen und während (1) und (3) bedienbar sein sollen ist (2) jetzt auf einmal eingefroren und lässt sich dementsprechend auch nicht mehr bewegen?

dummzeuch 10. Aug 2018 17:42

AW: Modale Form die nicht die ganze Anwendung blockiert
 
Normalerweise geht das nicht. Die Idee eines modalen Formulars ist ja gerade, dass es alle anderen Formulare blockiert.

Mit etwas gebastel geht es aber doch:

Enabling a form while another form is being shown modally


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:03 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz