[Lazarus] How to clone a component
nc-gaertnma at netcologne.de
Thu Oct 4 08:19:30 CEST 2012
On Thu, 04 Oct 2012 00:33:07 +0300
patspiper <patspiper at gmail.com> wrote:
> What is the correct way to clone programmatically a component, ie assign
> all its properties to another component of the same class (like the IDE
> designer's copy/paste)?
> The code below used to work in Delphi but does not with Lazarus (result
> is nil).
> Result:= TMyComponent(Clipboard.GetComponent(Self, Self));
It should work in Lazarus too.
More information about the Lazarus