Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi objekt hinzufügen (https://www.delphipraxis.net/46164-objekt-hinzufuegen.html)

jokerfacehro 19. Mai 2005 20:22


objekt hinzufügen
 
Heyho !

ich brauche eine flexible anzahl von panels, deshalb will ich diese
nicht manuell einfügen sondern per schleife. Hab das auch versucht.
Jedoch kam ich auf keine Lösung.

Delphi-Quellcode:
var S:TPanel;
...
  S.Create(self);
  S.Width := 20;
  S.Height := 20;
  S.Left := 100;
  S.Top := 100;
  S.Caption := 1;
  s.Font.Color := clSilver;
  S.Name := 'field';
  S.Parent := Panel1;

Fehler: access violation

Jens Schumann 19. Mai 2005 20:25

Re: objekt hinzufügen
 
Hallo,
versuch es mal mit
Delphi-Quellcode:
S:=TPanel.Create(Self)

jokerfacehro 19. Mai 2005 20:34

Re: objekt hinzufügen
 
jo danke ;)

das wars


-----> visit www.nsk-crew.de.vu


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

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