Repainting children from menu option
-
- In need of some credit
- Posts: 7
- Joined: Fri Jun 15, 2018 4:24 pm
Repainting children from menu option
Is there a way to refresh all child widgets of a wxFrame (or wxPanel) from clicking a menu option? Refresh() and Update() does not work. I've also read that Refresh() doesn't work unless if its called from the main thread and that there is no way to queue a paint event as well that would repaint the ui.
Re: Repainting children from menu option
Hi,
All GUI calls has to be done in the main thread. No exceptions.
What you can do is to send a message from the secondary thread and in the main thread catch it and call the Refresh()/Update().
Thank you.
All GUI calls has to be done in the main thread. No exceptions.
What you can do is to send a message from the secondary thread and in the main thread catch it and call the Refresh()/Update().
Thank you.