cancel
Showing results for 
Search instead for 
Did you mean: 

shared one Modal window for all screen

Natali
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Yoann KLEIN
ST Employee

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 KLEIN
ST Software Developer | TouchGFX

View solution in original post

5 REPLIES 5
Yoann KLEIN
ST Employee

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 KLEIN
ST Software Developer | TouchGFX
wired
Senior III

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?

Hello,

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

/Pontus

ferro
Senior III

Hi,

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