How to know active container?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-11-16 6:57 AM
Hi,
I have two containers on my screen. Two of them is visible. However I want to know which one is appearing on the screen. Is there a function about it or a way?
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-24 2:11 AM
Hello @Ezgi Şanver ,
I'm not sure to understand exactly why you want to know programmatically which element is appearing on the screen. Can you provide me the user case ?
But, if you want to control which element is appearing or not on the screen, you can use the setVisible(bool) method from the Drawable class.
Otherwise, in TouchGFXDesigner, the order in which you place the elements in the "widget list" has an influence on which the element is in foreground or in background on the screen. For example :
Hope that this helped you,
/Yoann
ST Software Developer | TouchGFX
