Autor Beitrag
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Fr 07.02.03 13:02 
Ich bin auf der Suche nach einem Beispiel, wie ich es schaffe eine Form bei einem Button Click zu erzeugen. Bei jedem Klick ein Formular.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
Ice
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114



BeitragVerfasst: Fr 07.02.03 13:34 
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
var
 Form  : TForm;
 i : Integer;

procedure FormCreate;
begin
 i := 0;
end;

procedure Button1.click
begin
 i := i +1;
 Form := TForm.Create();
 Form.Name := Form +inttostr(i);
 Form.show;
end;

sollte eigentlich so funktionieren .....

mfg Ice

Moderiert von user profile iconTino: Code-Tags hinzugefügt.