2021-03-18 08:37 PM
the modal window is likes message box that I needed.
I have multiple screens in project, can I use a same modal window for all screens or I need to add a modal window into the every screen?
how to do that if all screens can share a same modal window?
is someone can tell me? thanks.
2021-03-19 04:38 AM
The short answer is no - you cannot reuse the same modal window.
I think the easiest approach here would be to design a container with everything you need and then add that to the modal you want to show.
the long answer is that there is a way to re-use containers (or other widgets for that matter) but it's not straight forward.
2021-03-22 11:10 PM
Hello tliao.1,
As HP mentioned, using custom containers are a possibility. Simply creating a modal window inside a custom container and adding the custom container to each screen. But in the end it will still be different instances of the "same" modal window since every widget in a screen are only alive/allocated when this screen is displayed. When changing screen the widgets are destroyed.
/Alexandre