Autor Beitrag
Dhakiyah
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 327
Erhaltene Danke: 5

Windows 7
Delphi XE2
BeitragVerfasst: Mo 05.10.09 09:40 
Ich habe ein Hauptfenster MDIForm und mehrere MDIChilds in verschiedenen Unterordnern.
Jetzt möchte ich das er beim Starten des Programms ein ganz bestimmtes öffnet... Wie?

_________________
Es ist soooo flauschig !!!
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Mo 05.10.09 09:46 
evtl. alle midichilds mit visible.false oder hidden true starten.
und nur das was du willst mit visible true
oder so!?
hoffe ich konnte helfen
Dhakiyah Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 327
Erhaltene Danke: 5

Windows 7
Delphi XE2
BeitragVerfasst: Mo 05.10.09 09:59 
Der soll ja eh nicht alle Fenster öffnen...

Habe im Hauptfenster alle MDI so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure Tfrm_mdi_main.mnu_startClick(Sender: TObject);
var i: integer;
begin
  for I := MDIChildCount-1 downto 0 do
      MDIChildren[I].Close;
      Application.CreateForm(Tfrm_mdi_startseite, frm_mdi_startseite);
end;


Und in jedem einzelnen MDIChild:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure Tfrm_mdi_startseite.FormClose(Sender: TObject;
  var Action: TCloseAction);
begin
  Action := caFree;
end;


Die ganze Zeit ging es auch, dass er die Startseite zuerst angezeigt hat, jetzt habe ich ein neues MDIChild in einem anderen Unterordner gemacht und jetzt zeigt er mir beim Starten des Programms dieses neue Fenster... Keine Ahnung wieso, vielleicht habe ich irgendetwas übersehen...

_________________
Es ist soooo flauschig !!!
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Mo 05.10.09 10:07 
vielleicht vergessen die action anweisung in dein neues midi mit einzubinden!?
Dhakiyah Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 327
Erhaltene Danke: 5

Windows 7
Delphi XE2
BeitragVerfasst: Di 06.10.09 08:12 
Habs heraus gefunden.
Man muss Projekt/Quellcode anzeigen und dann bei begin die Zeile mit den neuen Fenster einfach raus löschen.

Gruß Jasmin

_________________
Es ist soooo flauschig !!!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 06.10.09 17:57 
Oder in den Projektoptionen unter Anwendung das Formular aus den automatisch zu erzeugenden rausnehmen (bewirkt das selbe im Quelltext).