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 Konsole: Komponenten hinzufügen (https://www.delphipraxis.net/25848-konsole-komponenten-hinzufuegen.html)

yankee 13. Jul 2004 18:31


Konsole: Komponenten hinzufügen
 
Wie kann man bei einem Konsolenprogramm Komponenten einfügen?
Ich meine natürlich nicht-visuelle...

Bernhard Geyer 13. Jul 2004 18:56

Re: Konsole: Komponenten hinzufügen
 
Indem du alles selbst machst (Erstellung und Freigabe):
Delphi-Quellcode:
procedure DoSomeWork;
var
  myComp: TMyComponent;
begin
  myComp := TMyComponent.Create(nil);
  try
    myComp.Property1 := WertVonProperty1;
    ...
    myComp.DoSomething;
  finally
    myComp.Free;
  end;
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:11 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