Autor Beitrag
elduchte
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 199

Win 2000, Win XP
Delphi 7
BeitragVerfasst: Do 19.06.03 11:08 
Hallo,
folgendes Problem:
ich habe ein MDI-Hauptformular entworfen. In dieses wird beim Start des Programms ein MDI-Child geladen. Das funzt auch sehr gut.

Jetzt möchte ich ein weiteres erstelltes Formular als MDI-Child laden, wenn ich über das MainMenü des MDI-Haupt-Formulars einen Eintrag anklicke.

Dieses neu erstellte Formular hat die Eigenschaft MDI-Child von mir zugewiesen bekommen.

Starte ich jetzt das Programm, erscheint sofort das neue MDI-Child ÜBER das erste MDI-Child, es soll aber erst nach Klick im Menü erscheinen. Ich habe auch noch nichts ins MainMenu eingetragen......

Was mache ich falsch?

Danke
Andreas
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Do 19.06.03 11:13 
Du musst unter Projekt -> Optionen -> Formulare das Child in die andere Liste rüberschieben.

Wenn ich dein Problem richtig verstanden habe.

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
elduchte Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 199

Win 2000, Win XP
Delphi 7
BeitragVerfasst: Do 19.06.03 11:26 
Jaaaaaaa...... Genau...... stimmt.....

Vielen, vielen Dank für diese schnelle Antwort......

Und wie rufe ich es jetzt ganz einfach aus einem Menü-Punkt auf ??

Irgendwie funzt das nämlich auch nicht richtig, glaube ich

Danke
Andreas
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Do 19.06.03 11:35 
du musst dann glaub ich

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var
  newform: TForm2

begin
  newform := TForm2.Create(Self);
end;


oder so arbeiten

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.