Skip to main content
Tobias1
Visitor II
March 17, 2021
Question

Invalidate/redraw entire screen

  • March 17, 2021
  • 1 reply
  • 966 views

I would like to trigger a complete redraw / invalidate of the current screen content.

So far I have only found https://community.st.com/s/question/0D53W00000Ug1dASAR/touchgfx-invalidateredraw-entire-viewscreen.

Calling view.getRootContainer().invalidate() in presenter also works.

However, since I need the redraw in all screens, the implementation in each individual presenter is not very smart.

I use partial frame buffers.

How can I trigger a redraw of the current screen from the model?

This topic has been closed for replies.

1 reply

Alexandre RENOUX
Visitor II
March 23, 2021

Hello Tobias,

Unfortunately, you cannot. The invalidation happens in the view. The model is only storing data and acts as the interface between the UI and the backend system. If you read the following article, this should make you understand better.

/Alexandre