Thema: Delphi MDI Problem :-(

Einzelnen Beitrag anzeigen

Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#9

Re: MDI Problem :-(

  Alt 18. Jan 2006, 22:21
Wenn du TForm2.create aufrufst, erzeugst du eine neue Instanz der Klasse TForm2.

Normalerweise macht Delphi das automatisch in die Variable Form2. Aber wenn du das manuell instantiierst, dann hast du mit jedem Aufruf von Create eine komplett neue Form2 die von den anderen unabhängig ist.

Verwechsle nicht TForm.create mit TForm.show.
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat