Hi!
So, I've been working on this app. The specifics are unimportant, but
when I tried running my code in Windows XP, after about a month of
painstaking work in my main OS Ubuntu, I discovered a problem...
Among other things, I allow the user to change the font size of the
widgets in the GUI. And, since this also modifies the width of the
widgets themselves, I need to call Layout() to make everything flow
smoothly into place. In Linux, this works perfectly. All widgets are
resized.
In Windows, however... The font sizes are changed, but the widgets
aren't. The only way to update the layout seems to be to change the
size of the window manually, by using the mouse. If the window's size
is changed even slightly, the widgets are all resized to accomodate
the new font sizes.
This led me to believe that a SendSizeEvent() would be a good
solution. However, it seems to do absolutely nothing. At least, it
didn't fix my problem. How the heck!? Isn't a SendSizeEvent()
basically exactly what happens when you resize a window, or does XP
use some other, special way of deciding when to relayout the whole
thing?
Any help or suggestions appreciated.
Thanks.
Mikael "Krank" Bergström