cancel
Showing results for 
Search instead for 
Did you mean: 

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

Danielj
Associate

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.

4 REPLIES 4
Romain DIELEMAN
ST Employee

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
Chief III

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
Associate

Thanks for fast responses.

Regards.

Martin KJELDSEN
Chief III

No sweat. Report back with your progress 🙂

/Martin