Autor Beitrag
thaflo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21

Zeta, Mandrake 9.1,Windoof XP
DELPHI 5
BeitragVerfasst: Fr 28.05.04 18:36 
Hallo!

Wie ist es denn möglich, ein shape im quellcode zu erstellen?
also, ich will nicht ein shape in die form zeichnen und dann visible auf false setzen, sondern direkt erst erstellen wenn ich z.B. einen button erstellt habe.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TfMain.miBeginClick(Sender: TObject);
begin


end;

kann mir jemand helfen?

danke, florian

Moderiert von user profile iconPeter Lustig (19:37, 28.05.2004): Code- durch Delphi-Tags ersetzt

_________________
Jeder braucht die Zeit, die Zeit zum Lernen, man kommt nicht auf die Welt und sieht die Dinge wie sie sind....(onkelz)
Pascal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 155

Win 98, Win XP
Delphi 2005, Delphi 5
BeitragVerfasst: Fr 28.05.04 21:43 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
Uses ..., ExtCtrls

procedure TfMain.miBeginClick(Sender: TObject); 
var shape1:Tshape;
begin 
shape1:=TShape.create(self);
with shape1 do begin
top:=0;
left:=0;
width:=200;
height:=50;
parent:=self;
end;

end;
thaflo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21

Zeta, Mandrake 9.1,Windoof XP
DELPHI 5
BeitragVerfasst: Sa 29.05.04 10:14 
danke, genau das braucht i!

:D

florian

_________________
Jeder braucht die Zeit, die Zeit zum Lernen, man kommt nicht auf die Welt und sieht die Dinge wie sie sind....(onkelz)