Component Creation

From: Vertuas (vertuas_at_nospamcallistocs.freeserve.co.uk)
Date: 06/26/04


Date: Sat, 26 Jun 2004 11:12:07 +0100

Hi all

Does anyone know of a way to create a component of a given class, by class
name, ie

function CreateComponent(ClassName : String): TComponent;

If sor example I wanted to create an image, i could pass Tmage as a string
and get a TImage back

I have looked In the help files at RegisterClass, GetComponentClass, an
TComponentClass but have not yet managed to get any results other that an
Access Violation or no component created.

If anyone has anythoughts, please fee free th post then.

Kind Regards

Vertuas



Relevant Pages

  • Re: Extending a class
    ... If he wants to use that array to access a property named MyAccessingANameFieldProperty, TComponentList is not sufficient because TComponent doesn't have such a property. ... He'll need a class with an Items property of a different type. ... property MyAccessingANameFieldProperty: string read FField write ... function GetItems: TAdamComponent; ...
    (comp.lang.pascal.delphi.misc)
  • Delph7 PageProducer - Collection
    ... var ReplaceText: String); ... destructor Destroy; override; ... constructor TWebPageProduction.Create(AOwner: TComponent); ...
    (de.comp.lang.delphi.misc)
  • Delphi7 WebSnap Application und externe Dateien
    ... Die test.prj Datei liegt aber in dem CGI-BIN Verzeichnis von Apache. ... var ReplaceText: String); ... constructor TPageProducerPage1.create(aOwner: TComponent); ... if =0) then ...
    (de.comp.lang.delphi.misc)
  • Re: Matanya Ophees "The History of Apoyando"-A Short Critique
    ... You're misquoting your own article. ... but from the middle a on string to e on string. ... Sor isn't describing rest stroke to give an accent to this note ...
    (rec.music.classical.guitar)
  • Re: Matanya Ophees "The History of Apoyando"-A Short Critique
    ... describes a movement of the i finger from string to string, ... Dragging one finger downward on two strings, ... rest stroke is to change notes in some way--either through ... The Sor example you're citing is merely a way to get from ...
    (rec.music.classical.guitar)