Einzelnen Beitrag anzeigen

Benutzerbild von Stanlay Hanks
Stanlay Hanks

Registriert seit: 1. Mär 2003
2.078 Beiträge
 
Delphi 2005 Professional
 
#2

Re: Shape wärend Laufzeit erzeugen.

  Alt 21. Aug 2003, 12:30
Hi! Als Beispiel:

Delphi-Quellcode:
 var Shape : TShape;
begin
 Shape := TShape.Create(Form1);

 With Shape do
  begin
   Parent := Form1;
   Left := 20;
   Top := 20;
   Width:= 20;
   Height:=20;
   Name := 'Shape1';
  end;

end;
Anschließend kannst du das neue Shape über Shape1 ansprechen.
Vorher die Unit ExtCtrls einbinden.

Man liest sich, Stanlay
  Mit Zitat antworten Zitat