Article View: borland.public.delphi.winforms.controls.using
Article #509Re: Constructor for type Borland.Vcl.ActnList.TActionList can not be found
From: Michael Mayer
Date: Sat, 14 Aug 2004 16:14
Date: Sat, 14 Aug 2004 16:14
20 lines
2028 bytes
2028 bytes
"Marc Rohloff [TeamB]" <"on request"> wrote: >On 4 Aug 2004 09:11:06 -0700, Michael Mayer wrote: > >> I tried to install the .net component "TActionlist" in a WinForm. >> After using "Installed .net Components"-Dialog the Component >> appears in the Tool-Box. If I try to create an Instance of >> "TActionlist" on the WinForm by drag & drop or double click on its >> symbol, I get the following error message: >Delphi (VCL style) components have a constructor of the form >'Create(aOwner:TComponent)', Winforms expects the constructor to be >parameterless. You could create a subclass of TActionList, give it a >constructor which simply calls 'inherited create(nil)' and register >that. > Thanks for your help. I created a subclass from TActionlist based on a VCl-component and a subclass based on a Winform-Component. In both cases the new classes are shown in toolbox. Draging the new components to WinForm the follwing error occures: "The object reference was not specified on an object instance." What can I do ?
Technical Details
Message-ID:
<411e3a83$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!prodigy.com!atl-c02.usenetserver.com!news.usenetserver.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41110a9a$1@newsgroups.borland.com> <14tadt2ce1dva.dlg@marcrohloff.40tude.net>Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,9f5682e30b00f9ee,start X-Google-Attributes: gid1eff29,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Michael Mayer" <0867112981-0001@t-online.de> Sender: "Michael Mayer" <0867112981-0001@t-online.de> Reply-To: "Michael Mayer" <0867112981-0001@t-online.de> Subject: Re: Constructor for type Borland.Vcl.ActnList.TActionList can not be found Newsgroups: borland.public.delphi.winforms.controls.using X-User-Info: 80.128.159.252 References: <41110a9a$1@newsgroups.borland.com> <14tadt2ce1dva.dlg@marcrohloff.40tude.net> NNTP-Posting-Host: 207.105.83.66 Message-ID: <411e3a83$1@newsgroups.borland.com> Date: 14 Aug 2004 09:14:59 -0700 X-Trace: newsgroups.borland.com 1092500099 207.105.83.66 (14 Aug 2004 09:14:59 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!prodigy.com!atl-c02.usenetserver.com!news.usenetserver.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail