I am trying to change font for all text in the application.
I understand I should use SetFont() (viewtopic.php?t=28801), which I use on main wxPanel (all widgets are inside it).
Since I am using wxSmith, my problem is that the code for widgets is created automatically, so they are all created at the start, in the constructor of application MainFrame.
So have to change wxPanel font after GUI is created and then somehow update the GUI, so widgets will use new font. I tried using
Code: Select all
MainFrame->Refresh();
Code: Select all
MainFrame->Update();
I imagine Refresh() and Update() methods are not the ones to be used, but then I am out of ideas. So if anyone has solution, I'm all ears.
EDIT: silly me, I changed font in wxSmith GUI. Still, I am interested how this can be solved if I program it myself.