![]() | Products |
| Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
| Messages 1 to 6 of 6 total |
| Mon, Oct 8 2012 6:12 AM | Permanent Link |
Peter | Hello,
is it possible to clone or duplicate an object (e.g. a TPanel)? Thanks in advance & Greetings ... Peter --- Sorry for my weird english |
| Mon, Oct 8 2012 11:35 AM | Permanent Link |
Fernando Dias | Peter,
Am I missing something... How about Copy/Paste? -- Fernando Dias [Team Elevate] |
| Mon, Oct 8 2012 11:52 AM | Permanent Link |
Uli Becker | Fernando,
I didn't even dare to ask. It must be something more complicated. Uli |
| Mon, Oct 8 2012 12:49 PM | Permanent Link |
Peter | Hello Fernando,
> Am I missing something... How about Copy/Paste? LOL, Uli is right: I mean how to clone or duplicate an object *programmatically*. something like this: myNewPanel := myExistingPanel.Clone(); Greetings ... Peter |
| Mon, Oct 8 2012 1:12 PM | Permanent Link |
Roy Lambert NLH Associates | Peter
How about the same way you'd do it in Delphi myNewPanel := TPanel.Create(self); myNewPanel.Height := myExistingPanel.Height; .... .... Roy Lambert [Team Elevate] |
| Mon, Oct 8 2012 4:58 PM | Permanent Link |
Mark Brooks Slikware | <<is it possible to clone or duplicate an object (e.g. a TPanel)>>
I use this technique a lot, but only in classes that I have defined myself. If I often find myself wanting to create a new instance based on an existing instance then I add a CopyFrom method. For example: TMyClass = class public procedure CopyFrom(const AClass: TMyClass); end; The code in CopyFrom simply copies across the elements that make sense in the context of a "copy from" action. Not sure if this is what you mean? Mark |
This web page was last updated on Saturday, March 7, 2026 at 12:08 PM | Privacy Policy © 2026 Elevate Software, Inc. All Rights Reserved Questions or comments ? |

