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

WIN XP
D7 Ent
BeitragVerfasst: Mo 28.04.03 13:02 
Wie kann ich ein shape als variable definieren?
Beispiel:

var Quadrat : ?;
Quadrat := shape1;
Quadrat.Left := 100;

mfg :D
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 28.04.03 13:40 
So:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
Var
  Quadrat: tShape;
Begin
  Quadrat := tShape.Create (Self);  // z. B: Self = Form1
  Quadrat.Parent := Self;
  Quadrat.Left := 100;