Hi,
I'm using STemWin on my current project which is using an STM32H7, 800x480 TFT, using the LTDC controller.
I'm trying to determine the correct approach to creating this type of design, which I figured I would creating using 2 emWin layers.
1) layer0 - contains full size window that is painted with a full size bmp image (background)
2) layer1 - contains multiple windows (they will be menus) that each have different widgets within them (laying them out using the GUIBuilder).
** I would like these windows to be TRANSPARENT except for their associated widgets** (when I enable the window of course...)
I have the intial layer0 window working fine, painting the full background 800x480 bmp image.
What I would like to is have all of these layer1 windows be TRANSPARENT except for their associated widgets, want them to show on top of course. But these windows (menus) will all be different menus or sub-menus, so only 1 of them will be shown at a time, depending on buttons of the current menu being pressed.
First, is this the right approach to being able to do this?
ie can I make the entire layer1 window area be TRANSPARENT (except for it's child widgets), and have the layer0 image showing through with the layer1 window's 'widgets' showing on top of the image?
(I was assuming I can just do the 'WINDOW_SetBkColor(GUI_TRANSPARENT) for the layer1 window)
So essentially I'll be displaying buttons that will then toggle other menus/sub-menus, etc..
Is this the correct approach to doing a standard GUI like this?
Or should I be creating ALL of my widgets,and attaching them to the layer0 window as children, and hiding/showing them individually, versus showing/disabling an entire window (which contains it's child widgets)?
I'm using STemWin on my current project which is using an STM32H7, 800x480 TFT, using the LTDC controller.
I'm trying to determine the correct approach to creating this type of design, which I figured I would creating using 2 emWin layers.
1) layer0 - contains full size window that is painted with a full size bmp image (background)
2) layer1 - contains multiple windows (they will be menus) that each have different widgets within them (laying them out using the GUIBuilder).
** I would like these windows to be TRANSPARENT except for their associated widgets** (when I enable the window of course...)
I have the intial layer0 window working fine, painting the full background 800x480 bmp image.
What I would like to is have all of these layer1 windows be TRANSPARENT except for their associated widgets, want them to show on top of course. But these windows (menus) will all be different menus or sub-menus, so only 1 of them will be shown at a time, depending on buttons of the current menu being pressed.
First, is this the right approach to being able to do this?
ie can I make the entire layer1 window area be TRANSPARENT (except for it's child widgets), and have the layer0 image showing through with the layer1 window's 'widgets' showing on top of the image?
(I was assuming I can just do the 'WINDOW_SetBkColor(GUI_TRANSPARENT) for the layer1 window)
So essentially I'll be displaying buttons that will then toggle other menus/sub-menus, etc..
Is this the correct approach to doing a standard GUI like this?
Or should I be creating ALL of my widgets,and attaching them to the layer0 window as children, and hiding/showing them individually, versus showing/disabling an entire window (which contains it's child widgets)?