Delphi-PRAXiS
Seite 1 von 3  1 23      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi mdi child forms in normaler form einbauen ? (https://www.delphipraxis.net/74319-mdi-child-forms-normaler-form-einbauen.html)

agm65 1. Aug 2006 11:58


mdi child forms in normaler form einbauen ?
 
hallo leute, hab mal (wieder) eine frage..also ich hab ne normale form die ich zu einem parent umbauen will...dachte ich stelle jetzt erstmal den formstyle auf fsMIDForm ... aber dann kann ich bei datei neu keine mdi childs erstellen ? was soll ich tun ? mfg

TBx 1. Aug 2006 11:59

Re: mdi child forms in normaler form einbauen ?
 
Datei-->Neu-->Form

Dann den Formstyle des Forms auf MDIChild setzen

Gruß

onlinekater

agm65 1. Aug 2006 12:09

Re: mdi child forms in normaler form einbauen ?
 
also muss dann das ganze projekt mdi sein ? weil ich hab schon 3 normale und wollte jetzt 1ne form davon als mdi umbauen ?

Angel4585 1. Aug 2006 12:10

Re: mdi child forms in normaler form einbauen ?
 
bei mdi braucht du immer eine die als MDIForm fungiert und dann MDIChilds die da drauf erzeugt werden. die andern kannst du denk ich nebenher auch offen haben, das sollte kein Problem geben.

mkinzler 1. Aug 2006 12:11

Re: mdi child forms in normaler form einbauen ?
 
Du kannst in jedem Projekt MDI einsetzten.

agm65 1. Aug 2006 12:15

Re: mdi child forms in normaler form einbauen ?
 
okay dann jetzt step bei step...ich hab meine form, frmmain die soll jetzt mdi tauglich sein ..wie gehe ich vor und wie adde ich jetzt auf diese form main meine mdi childs ?

Angel4585 1. Aug 2006 12:19

Re: mdi child forms in normaler form einbauen ?
 
du setzt "FormStyle" dieser Form auf "fsMDIForm"
dann nimmst du ein Child und setzt bei diesem FormStyle auf "fsMDIChild"
dann erzeugst du das Child (TfrmChild.Create(frmMain))

beachte das du zum schliessen des Childs im OnClose des Childs Action = caFree setzen musst.

agm65 1. Aug 2006 12:23

Re: mdi child forms in normaler form einbauen ?
 
ja aber wo bekomme ich das child her ? bei datei -> neu -> usw finde ich die child form nicht

fwsp 1. Aug 2006 12:25

Re: mdi child forms in normaler form einbauen ?
 
du nimmst ne form, das mdichild ist eine eigenschaft der form.

Siehe: FormStyle

agm65 1. Aug 2006 12:27

Re: mdi child forms in normaler form einbauen ?
 
ja und wie sage ich dann im parent mdi -> öffne mir das child im parent ?


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:58 Uhr.
Seite 1 von 3  1 23      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz