Autor Beitrag
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 16.01.06 14:41 
Hallo, ich habe ein kleines großes Problem :)


  • Bei FormStyle = fsNormal verschwinden die Dialoge hinter dem Hauptformular (beim Erzeugen z. Laufzeit nicht gerade elegant)
  • Bei FormStyle = fsStayOnTop Fehlermeldungen im Hintergrund das Prog bleibt hängen (da ich nicht quitieren kann)
  • Bei FormStyle = fsMDIForm und fsMDIChild wird der erzeugte Dialog mit Show nicht angezeigt


Also ich weiß nicht recht wann wähle ich was? Welche Regeln gelten?

Und wie löse ich die oben genannten Problemme?
Welche Lösungswege gibts da, bei den einzelnen Fehlerpunkten?
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 16.01.06 14:44 
Versuch' mal das: .bringtofront;
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 16.01.06 15:06 
Ein Dialog wird mit ShowModal angezeigt.
Wenn du das machst und der Style fsNormal ist, dürfte es kein Problem mehr geben.
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 16.01.06 15:07 
user profile iconFabian W. hat folgendes geschrieben:
Versuch' mal das: .bringtofront;


Ja und auf welches Modell sollte ich es anwenden? Bzw. welches sollte ich wann nehmen?

Ok, bringtofront, aber bei welchem Ereignis? Als ich z.B. das FormStyle auf fsNormal hatte und
dann zu einer anderen anwendung gewechselt habe und dann zurück zu meiner dann war das Dialog
hinter dem Hauptfenster, ja und eigentlich sollten die Dialoge nie hinter das Hauptfenster
geraten da der Benutzer dann salop mal den Button wieder Klickt und dadurch das gleiche Dialog
nochmal erzeugt, das wäre doch nicht gerade elegant?
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 16.01.06 15:09 
user profile iconjasocul hat folgendes geschrieben:
Ein Dialog wird mit ShowModal angezeigt.
Wenn du das machst und der Style fsNormal ist, dürfte es kein Problem mehr geben.


Endlich hat einer unserer Delphi Väter mir genatwortet :wink:

Vielen Dank, Vater! :D