Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Shape (https://www.delphipraxis.net/86399-shape.html)

Simon1988 13. Feb 2007 16:53


Shape
 
Guten Tag,
wollte ein Shape erzeugen. Aber selbst erzeugen
Delphi-Quellcode:
 Shape := TShape.create(Form1) ;
 Shape.Top := 10 ;
 Shape.Left := 10 ;
 Shape.Width := 10 ;
 Shape.Height := 10 ;
 Shape.Visible := TRUE ;
 Shape.Enabled := true ;
 Shape.Shape := stRectangle ;
 Shape.Pen.Color := clred ;
 Shape.Brush.Color := clred ;
 Shape.Show ;
das problem ist , dass dieses shape nicht angezeigt wird .. warum
ß0??

DGL-luke 13. Feb 2007 16:56

Re: Shape
 
Das Parent muss noch zugewiesen werden, in diesem falle wohl auch auf Form1.

Simon1988 13. Feb 2007 16:59

Re: Shape
 
wie mach ich das:) ?

Daniel G 13. Feb 2007 17:00

Re: Shape
 
Delphi-Quellcode:
Shape.Parent := Form1;

Simon1988 13. Feb 2007 17:01

Re: Shape
 
danke :)


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:01 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz