Skip to main content
Danielj
Associate
October 19, 2020
Question

TouchGFX: Pop-up container doesn't block a buttons under it.

  • October 19, 2020
  • 4 replies
  • 1232 views

Hello,

I made a warning pop up container which "cover" all screen, but buttons under it remains active. Is there any solution for that kind of problem? (I know I can add a dummy button under the container but I think about other, more straight options).

Regards.

This topic has been closed for replies.

4 replies

Romain DIELEMAN
ST Employee
October 23, 2020

Hi,

Within your code you could make sure that buttons are set as non visible when you have the warning pop up.

NameOfButton.setVisible(false); //or true when done

When non visible, buttons cannot be interacted with.

/Romain

Martin KJELDSEN
Principal III
October 23, 2020

Another way is to make your popup toucheable. If it's on top, then it will "absorb" all the clickEvents and anything below it cannot be touched.

/Martin

Danielj
DanieljAuthor
Associate
October 23, 2020

Thanks for fast responses.

Regards.

Martin KJELDSEN
Principal III
October 23, 2020

No sweat. Report back with your progress :)

/Martin