Duplicate an object

Hi,

I’m trying to create a dynamic calendar under Servoy without HTML in the code. But I have question about this.

Is it possible to duplicate an object like label, rectangle, button… ?

I have just find informations about duplication for forms but not for others objects.

Thanks.

Copy & Paste works fine for me … is that what you mean? Or do you mean duplicating form objects between different solutions?

kazar

i want to duplicate a element (label, button, ect…) dynamically in javascript code.

It’s the same thing like copy/paste but it’s dynamic :wink:

You can’t, objects can only created by developer in designer, not in client.

You can’t, objects can only created by developer in designer, not in client

If that is true, you should not call servoy object oriented. In any OO environment I worked with you are able to dynamicly create new classes and subclasses of objects, inherit the class properties and modify those for a certain instance.
I haven’t had the time to play around with it but I’m sure there is a way to duplicate instances of swing classes.
What is possible is that you can’t do it through servoy directly and need to pass via java & a plugin

[/code]

I was indeed referring to the standard gui elements Servoy offers such as forms, fields, etc. Obviously if you move to Java you can do anything you wish.

Ok, I will try to developp a plugin to do this.

Thanks.