Skip to main content
zzzzz
Senior
Jan 26, 2021 6:30 PM UTC
Solved

A button beneath a solid container is touched ...

I met a strange "problem" with TGFX. Let's say, on one screen, it contains a few buttons and a container. the container is on top of the screen and invisible when the screen is initialized. The problem is when I set the container visible, I found buttons under the container are touchable, even though I cannot see them (the container covers the whole screen). Is this normal? what should I do if I want only the "visible" widgets being "activated". Thanks in advance.

This topic has been closed for replies.
Alexandre RENOUX
Alexandre RENOUXBest answer
Visitor II
Jan 28, 2021 3:42 AM UTC

Hello,

I'll see with the team if we should change that in the future.

For now, one way to do it would be to add a ClickListener to your container. You can do this directly in the Designer (see picture below)

0693W000007CyBQQA0.pngWhen your question is answered, please close this topic by choosing Select as Best.

/Alexandre

3 replies

Alexandre RENOUX
Alexandre RENOUXBest answer
Visitor II
Jan 28, 2021 3:42 AM UTC

Hello,

I'll see with the team if we should change that in the future.

For now, one way to do it would be to add a ClickListener to your container. You can do this directly in the Designer (see picture below)

0693W000007CyBQQA0.pngWhen your question is answered, please close this topic by choosing Select as Best.

/Alexandre

zzzzz
zzzzzAuthor
Senior
Jan 28, 2021 1:48 PM UTC

Thanks. it solves our problem. we have created a custom modal window to wrap our containers to fix this issue. but your solution is much better than ours. I have selected it as best.

MPast.1
Senior
Jan 29, 2021 4:26 PM UTC

I have the same problem with vertical menu. My vertical menu cover a part of the screen (more than half screen) and when it is full expanded allows to interact with all other objects in the screen behind it. I want to try this solution hoping it can solve this "problem". I will write the result as soon as possibile.