Skip to main content
zzzzz
Senior
October 4, 2021
Solved

Why does the TGFX modal window need to set a background to work?

  • October 4, 2021
  • 2 replies
  • 1019 views

I want to design a modal window to block the screen. Based on the different cases it will display different widgets. I want only to display the widgets without modal window background. But it looks like that the modal window class needs a background to draw its children. Any suggestion?

Thanks in advance.

This topic has been closed for replies.
Best answer by MHaji.1

Hi, modal window need background and you should add an image to be displayed, It is not designed to draw every widget, it is used for messaging...

Another way is add transparent image and then add your widget, but it wastes your resources.

2 replies

MHaji.1Best answer
Senior
October 4, 2021

Hi, modal window need background and you should add an image to be displayed, It is not designed to draw every widget, it is used for messaging...

Another way is add transparent image and then add your widget, but it wastes your resources.

zzzzz
zzzzzAuthor
Senior
October 4, 2021

Using a transparent image as background may work in my case. Thanks.