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
 
#14

Re: MDI Problem :-(

  Alt 18. Jan 2006, 22:47
Ähm, damit änderst du den Namen, aber das bringt dir, mal überlegen, gar nichts. Jedenfalls nicht besonders viel.

Ich würde empfehlen, eher die Dinger alle schön in eine TList zu packen. Oder in ein Array.

Bei TList gehts so:

Delphi-Quellcode:
var lst: TList;
//...
lst.add(TForm2.Create);
//...
lst[2].caption:='Bla';
Mit Arrays:

Delphi-Quellcode:
var formarray: array of TForm;
//...
setlength(formarray,length(formarray)+1);
formarray[high(formarray)]:=TForm2.Create;
//...
formarray[2].caption:='Bla';
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