Skip to main content
Natali
Associate III
July 24, 2022
Solved

shared one Modal window for all screen

  • July 24, 2022
  • 5 replies
  • 1974 views

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.
Best answer by Yoann KLEIN

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

5 replies

Yoann KLEIN
Yoann KLEINBest answer
ST Employee
July 25, 2022

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
April 29, 2024

Hello,

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

/Pontus

wired
Senior II
August 2, 2022

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
June 5, 2024

Hi,

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