On Mon, 12 Nov 2007, Damien Gerard wrote:

> 
> Is there a way to clone objects/components ?
> 
> In C++ we use copy constructors, but in fpc/laz, I don't think there are such
> methods.
> In fact I would like to create using the IDE a Panel with sub controls and
> dupplicate it.
> It is such a pain to write the code by hand.
> 
> But may be there is a specific way to do this

You can stream the panel and read the stream again for a new panel instance.

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to