Skip to main content
zzzzz
Senior
January 26, 2021
Solved

A button beneath a solid container is touched ...

  • January 26, 2021
  • 3 replies
  • 870 views

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.
Best answer by Alexandre RENOUX

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
January 28, 2021

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
January 28, 2021

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
January 29, 2021

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.