Custom Dialog Sugerencia - Forum

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

Custom Dialog Sugerencia

@luishp

Quizas ya se puede hacer y no se como pero por las dudas te lo dejo como idea por si es aplicable en futuras versiones

Posibilidad de agregar acciones al abrir una pagina que esta en la seccion Dialogs, ejemplo por si queremos hacer foco  en un campo de texto al abrir el dialogo

He intentado hacer foco ejemplo antes de abrirlo o despues de la accion de abrirlo peor sin resultado positivo

Otra sugerencia sobre los Dialog seria el poder cambiarle cl color de fondo de manera mas facil sin tener que usar CSS

@gustavo1973

Possibility to add actions when opening a page that is in the Dialogs section

VisualNEOWin had specific subroutine names which, if present, would be serviced upon opening and closing of CustomWindows ... would be a nice feature in VisualNEOWeb as well.

Example in case we want to focus on a text field when opening the dialog

I setup a Dialog (called Dialog2) with 2 TextInput Boxes (TextInput6 was the second box)... I attached this code to a Button, and it worked for me ...

OpenDialog "Dialog2"

Wait 5
   FocusObject "TextInput6"
EndWait

You may have to increase the wait time to accommodate slower machines.

Another suggestion about the Dialog would be to be able to change the background color more easily without having to use CSS

If you are referring to the area below the Dialog Title, one workaround would be to ...

a) create a Container that fits exactly within this area
b) Select it and Arrange >>> Send To Back
c) Optional: set it to show no border

... then add code similar to this in the Wait/EndWait code block ...

CreateEmptyObject [dialogCss]
SetVar [dialogCss.backgroundColor] "blue"
SetObjectCSS "Container15" [dialogCss]

If you like, you can turn this code into a Subroutine ... and call it with just one line of code (with parameters for 'name of Container' and 'background color'.

luishp and Darbdenral have reacted to this post.
luishpDarbdenral