Skip to main content
Tuoman
Senior II
October 25, 2019
Solved

Action to Show container (instead of show widget)?

  • October 25, 2019
  • 2 replies
  • 1224 views

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.
Best answer by Martin KJELDSEN

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

2 replies

AKetc
Associate III
October 25, 2019

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
October 28, 2019

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
November 6, 2019

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