Hello,
I have developed a HMI with a 10" LCD panel. The driver for the LCD controller is working without hitch.
I have developed three screens which transition based on key pressed by the user. Each screen consists of a widget tree starting at WIDGET_ROOT. Widgets such as list boxes, sliders and buttons are added to the tree using WidgetAdd() function.The initial screen is shown on power on reset. when the user presses a key, the next screen is shown. When user presses another key the initial screen is expected. However, the initial screen and the current screen mix up and the screen does not show a complete screen. The transition from one screen to another is achieved by clearing the original WIDGET_ROOT using WidgetRemove() function and adding another widget tree. I believe if I remove the WIDGET_ROOT all the child widgets are also removed.
I have studied the grlib_demo in which canvas widgets are used. However, since I started off with the method I have used I have not used canvas in my code. Or is using canvas the only solution to the issue.
Thanks for your time.
Regards,
Hemant