Skip to main content
Natali
Associate III
Jul 24, 2022 5:34 PM UTC
Solved

shared one Modal window for all screen

Suppose we have 50 different screen in a program.

For the following modes, I have to show information to the user in a Modal window in the same screen we are in.

For example, USB connection - correct storage of information in the memory - temperature crossing a certain range and...

If I use Modal Window, I have to add it in all these 50 pages.:\

Is it possible to define a common Modal window for all screen?

so that it can be called and shown in all of these 50 screen.

This topic has been closed for replies.
Yoann KLEIN
Yoann KLEINBest answer
ST Employee
Jul 25, 2022 8:08 AM UTC

Hello @Natali​,

Unfortunately, you will have to add it to every screen.

That could be a nice feature to implement in the future though, I will discuss that with my colleagues.

Thank you,

/Yoann

Yoann KLEINST Software Developer | TouchGFX

5 replies

Yoann KLEIN
Yoann KLEINBest answer
ST Employee
Jul 25, 2022 8:08 AM UTC

Hello @Natali​,

Unfortunately, you will have to add it to every screen.

That could be a nice feature to implement in the future though, I will discuss that with my colleagues.

Thank you,

/Yoann

Yoann KLEINST Software Developer | TouchGFX
Associate III
Apr 29, 2024 7:14 AM UTC

Hello,

Is this feature something that has been implemented since? I am in the same spot as the author :)

/Pontus

wired
Senior II
Aug 2, 2022 12:44 PM UTC

I have a single custom container that I share among all of my screens that I use to show status information, like you would see at the top of a cell phone. I've never tried this, but could you put a Modal Window in a custom container and hide it until it needs to be used?

ferro
Lead
Jun 5, 2024 9:32 AM UTC

Hi,

I am tninking of placing all common widgets into one class and make all Views inherit from it.