Sunday, February 25th 2018, 6:06pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

bav@cas

Beginner

Date of registration: Sep 25th 2017

Posts: 1

1

Friday, September 29th 2017, 4:59pm

Custom background for dialog window

Hi,

I am trying to create a dialog window with a rapidly updating background image and a couple of widgets. I would like the background to only update when a new background image is available (picture). I have implemented a function which does some image manipulations and copies the image directly to the working frame buffer. As a result, I need to overwrite the entire background of the dialog with the image and then have all of the widgets redrawn. Is there a way to do this with a dialog window such that the background is drawn only once and all of the widgets are updated?

I have had mixed success before by creating a window widget which was a child of the dialog and bringing it to the back. Then drawing the child window when there was a new image available. This however, caused flicker as the widgets were not drawn immediately after the image was drawn. If sibling widgets are on top of the window widget in the back, and the window widget in the back is invalidated, does that cause the siblings to be invalidated as well?

Thanks,