Hello,
I am using STemWin to add a fundamental GUI to existing hardware/software, but am running into some problems using GUI_Exec() and WM_Paint(). The code I am building on top of follows the 'single task system (super loop)' execution model. Every second the main loop calls a function that updates my display.
The function does the following:
What I am trying to achieve is updating text and graph data every second. However, the widgets seem to take a very long time (much longer than 1 second) to undraw and draw. Could I be doing something incorrectly?
I am also having trouble using memory devices. I would like to buffer everything on the display so that when a popup appears, the underlying content can be withdrawn. I have created the underlying content without using the window manager. However, I cannot seem to create a memory device that contains the entire 320 x 240 pixels display. The most I can store seems to be 1/4 of the display. Is this because insufficient memory has been allocated to emWin in GUIConf.c?
Any help would be greatly appreciated!
I am using STemWin to add a fundamental GUI to existing hardware/software, but am running into some problems using GUI_Exec() and WM_Paint(). The code I am building on top of follows the 'single task system (super loop)' execution model. Every second the main loop calls a function that updates my display.
The function does the following:
- sets the color of several text widgets to the color of the background
- removes several graph data objects from an XY graph
- calls GUI_Exec()
- updates the values of the text widgets
- updates the graph data objects
- sets the color of the text widgets to a visible color
- adds the graph data objects back to the graph
- calls GUI_Exec() again
What I am trying to achieve is updating text and graph data every second. However, the widgets seem to take a very long time (much longer than 1 second) to undraw and draw. Could I be doing something incorrectly?
I am also having trouble using memory devices. I would like to buffer everything on the display so that when a popup appears, the underlying content can be withdrawn. I have created the underlying content without using the window manager. However, I cannot seem to create a memory device that contains the entire 320 x 240 pixels display. The most I can store seems to be 1/4 of the display. Is this because insufficient memory has been allocated to emWin in GUIConf.c?
Any help would be greatly appreciated!