Question regarding action for Object action missing? - Forum

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

Question regarding action for Object action missing?

Hi!

I am a new user of VisualNeo Web. At my first attempt to create my first small application. I got stuck at why I don't see ObjectToBack when we have ObjectToFront? I uninstall VisualNeo Web, rebooted and reinstalled it. Still not there?

Anyone else have this issue. Thank you for your help.

Patrick

Hi @thenotman, welcome to the forum!

You can position any object in design time using Arrange > Bring to front and Arrange > Send to Back menu commands.
At run time there is not a ObjectToBack command due to how positioning works: using z-index CSS property.
z-index values start at 0 and, if any object has a z-index 0 value, no one can have a lower value. ObjectToFront can look to the greatest object z-index value and add 1.
If any one knows how to solve this at run time I will be more than happy to implement it within VisualNEO Web.
Sorry!

 

Quote from luishp on June 5, 2019, 12:47 pm

Hi @thenotman, welcome to the forum!

You can position any object in design time using Arrange > Bring to front and Arrange > Send to Back menu commands.
At run time there is not a ObjectToBack command due to how positioning works: using z-index CSS property.
z-index values start at 0 and, if any object has a z-index 0 value, no one can have a lower value. ObjectToFront can look to the greatest object z-index value and add 1.
If any one knows how to solve this at run time I will be more than happy to implement it within VisualNEO Web.
Sorry!

 

Thank you for your quick answer! Now I know why :)

@thenotman, I have finally found a better solution for sending objects to the back and to the front.
It's possible to move the HTML nodes up and down instead of changing the z-index value.
I will add the command ObjectToBack and modify how ObjectToFront works on next version.
Meanwhile take a look at the attached sample and its subroutines.

Regards.

Uploaded files:
  • You need to login to have access to uploads.