Skip to main content
Tuoman
Senior II
Oct 25, 2019 9:09 AM UTC
Solved

Action to Show container (instead of show widget)?

Hi,

I need to show "Yes/No" modal dialog when a sensor value goes over limits.

Why there is only Show/hide/move widget action, but no Action to show container? I'm I missing something here and thinking this wrong?

Should I make Custom Widget instead, or should I call C++ function that can show Container?

Thanks!

This topic has been closed for replies.
Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Nov 6, 2019 10:31 AM UTC

I can add a "Modal Window" to my canvas and select it as target after choosing the "Hide/Show widget" action.

A custom container or even a regular container is also a widget that you can select in the list of target widgets to show or hide,

/Martin

4 replies

AKetc
Associate III
Oct 25, 2019 4:16 PM UTC

You can create a custom container of the "Yes/No" Modal Dialog and then add it inside your MainView after including the header file of the custom container.

Afterwards, you can set it visible or hide it in you custom code.

Tuoman
TuomanAuthor
Senior II
Oct 28, 2019 1:53 PM UTC

Okay, thanks!

So this feature could be added TouchGFX designer? I think this "show container" is commonly used feature, just like "show widget" is.

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Nov 6, 2019 10:31 AM UTC

I can add a "Modal Window" to my canvas and select it as target after choosing the "Hide/Show widget" action.

A custom container or even a regular container is also a widget that you can select in the list of target widgets to show or hide,

/Martin