
Quote from roccocogliano on October 24, 2023, 12:44 pmHi @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 @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

Quote from luishp on October 24, 2023, 5:54 pmHi @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.
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.

Quote from roccocogliano on October 25, 2023, 9:38 amHi @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
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

Quote from luishp on October 25, 2023, 1:48 pm@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 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.

Quote from roccocogliano on October 25, 2023, 2:47 pmIt 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
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