Autor Beitrag
Flash106
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: Fr 18.03.05 09:07 
Hallo,

ich habe eine MDI Anwendung erstellt und wenn ich ein Child Fenster schließen will muss ich ja erst den FormStyle auf Normale setzen und dann das Fenster verstecken... aber das flackert dann immer so in einer Ecke... blitzt kurz auf dann ist es weg. sieht Doof aus.. wie regelt man denn sowas?! :(

Hier mal der Source:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
//öffnen des Fensters
  Form.FormStyle := fsMdiChild;

//schließen des Fensters
  Form.FormStyle := fsNormal;
  Form.Hide;
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: Fr 18.03.05 09:21 
Schreib ins onClose des MDIChilds folgendes rein:
ausblenden Delphi-Quelltext
1:
action := caFree;					

Dann kannst du dir den ganzen anderen Mist sparen.
Flash106 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: Fr 18.03.05 09:24 
wow SUPER! und wie zeige ich es dann wieder an?
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: Fr 18.03.05 09:27 
Du musst es neu erzeugen (Create).
Du hast ja kein Hide, sondern ein Close gemacht.
Flash106 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: Fr 18.03.05 09:31 
hast du vielleicht einen code schnippsel für mich?? krieg hier nur fehler wenn ich create oder sowas mache.. und show geht ja nicht... :(
wdbee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 628
Erhaltene Danke: 1



BeitragVerfasst: Fr 18.03.05 09:38 
Schau dir das MDI-DEMO von Delphi an: DATEI-NEU-PROJEKTE-MDI-Anwendung
Wahrscheinlich wird dein ChildForm in der DPR-Datei erzeugt und das ist bei MDI anders üblich!