Autor Beitrag
MasterBasti
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38

Windows XP
D6 Prof.
BeitragVerfasst: Mo 21.05.07 08:41 
Hallo zusammen,

mir gelingt es nicht ein Modales Formular in einer MDI-Anwendung zu öffnen.
Müsste doch möglich sein ?!?! Es handelt sich dabei um ein "Einstellungen"-Fenster.
Hat jemand eine Idee ?

Formxy.ShowModal macht es jedenfalls nicht -> "Aus einem sichtbaren Fenster kann kein Modales gemacht werden"

Gruß

MasterBasti
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mo 21.05.07 09:05 
Du musst das Form in den Projektoptionen aus der automatischen Erstellung rausnehmen und es dann manuell erzeugen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
var form:TFormXY;
begin
  form := TFormXY.Create(Self);
  form.ShowModal;
end;
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6393
Erhaltene Danke: 147

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 21.05.07 10:19 
Das dürfte auch nicht funktionieren. Das Fenster wird als MDI-Child definiert sein.
Du musst von vornherein festlegen, dass Dein Fenster keine MDI-Child ist, sondern ein normales (-> FormStyle). Dann sollte es funktionieren, wie user profile iconugrohne es beschrieben hat. Evtl. muss Visible auch noch auf False gestellt werden.
MasterBasti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38

Windows XP
D6 Prof.
BeitragVerfasst: Di 22.05.07 16:34 
Prima, danke! Funktioniert bestens! :)