DuplicateObjectEx and DuplicateObject commands - Forum

Forum Navigation
You need to log in to create posts and topics.

DuplicateObjectEx and DuplicateObject commands

Hi @luishp,

The DuplicateObjectEx command works well if "auto-size content to fit device width" or "auto-size content to fit device height" is not set in the project properties. When those properties are set the command does strange things.
You manage to set the id for the copied object but graphically a mess happens. Instead, with the DuplicateObject command you duplicate the object graphically (either with "auto-size content to fit device width" or "auto-size content to fit device height" or otherwise) but you are unable to assign a new id to the duplicate object. I think there is a bug in DuplicateObjectEx (or I don't know how to use it well). Is it possible to fix DuplicateObjectEx or make DuplicateObject have the ability to assign a new id to the duplicate object?
For testing I used the sample app in this thread https://visualneo.com/forum/topic/duplicateobject-issues where I added a comment writing what I'm writing here too.

Thanks so much in advance for the answers

Greetings
Rocco

Hi @roccocogliano, this is a difficult matter due to the way "auto-size content" works.
Why do you want to use "auto-size content to fit device width" or "auto-size content to fit device height"?
I think there are now much better ways to adjust your app to the device size, like FitAppToScreen command or responsive classes.

Regards.

roccocogliano has reacted to this post.
roccocogliano

Hi @luishp,
Thanks for the reply.
I prefer automatic resizing because the apps set in this way have, for me, a more pleasant appearance (they cover the entire screen area) while with FitAppToScreen I don't get the same result or at least I can't. Is there a way to achieve the same result using FitAppToScreen? From the tests I have done I am not getting the desired results.
I think I need to delve deeper into the part that concerns the creation of responsive interfaces.
Thanks again for the answer.

Greetings
Rocco

@roccocogliano this should cover the entire screen area without design deformation. A vertical scrollbar will be added when needed.
I think this is perfect for mobile apps.

FitAppToScreen true "top" "center"

Regards.

roccocogliano has reacted to this post.
roccocogliano

It could be an alternative but with this type of scaling, everything must be thought about from the beginning, from when you start designing the webapp.

Thanks so much @luishp

Greetings
Rocco