Autor Beitrag
Das S
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: Mi 01.09.04 11:25 
Hi,

ich habe Panel1, welches bei der Entwicklung mit einen Haufen Editfelder erzeugt wurde, mit panel1.free; entladen. Nun möchte ich das selbe Panel wieder createn. Wie genau funktioniert das ?

Schöne Grüße

Das S
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Mi 01.09.04 12:22 
mit create :

:D

ausblenden Delphi-Quelltext
1:
2:
Panel1:=TPanel.Create(self);
Panel1.Parent:=Form1;

die enthaltene edit must du natürlich auch nochmal neu erstellen und die position des panels und der edits müssen wieder eingestellt werden.
einfacher wäre natürlich du würdest das panel einfach nur unsichtbar machen:

ausblenden Delphi-Quelltext
1:
panel1.Visible:=False					

_________________
Patrick
im zweifelsfall immer das richtige tun!!!