On Fri, 23 Apr 2021 07:30:59 -0700 Randalph wrote:
R> I switched from 3.1.3 to 3.1.5, running on Windows 10 build 19042. In both
R> my own code and in the wxWidgets Dialogs sample (Generic dialogs, Modal)
R> buttons are no longer sized to fit the label text.
I don't see anything wrong with the buttons in dialog in the sample with
3.1.5, could you please show what do you see in it?
R> In addition, when I specify wxBU_EXACTFIT the button no longer displays
R> at all.
I don't see this in the widgets sample neither, does it happen for you
there?
R> If I switch back to 3.1.3 and rebuild my apps and the wxWidgets sample
R> the buttons once again resize as expected, and display with
R> wxBU_EXACTFIT set.
It would be great if you could please find when exactly did this change,
e.g. by running git-bisect.
R> What I'm wondering is if by any chance I'm doing something wrong with my
R> builds of wxWidgets. I'm using the vc16 solution file. I make three changes
R> to msw\setup.h:
R>
R> #define wxUSE_COMPILER_TLS 2
This is unrelated, but we should make this the default now...
R> #define WXWIN_COMPATIBILITY_3_0 0
R> #define wxUSE_JOYSTICK 0
R>
R> Aside from that, I make no changes. I can't think of why any of those
R> settings would affect button sizing.
Me neither.
R> I do know there's something odd with fonts on my system -- in both 3.1.3
R> and 3.1.5, most of the time I get an unhelpful return of -1 if I try to
R> launch Font picker, though every once in a while it will suddenly work fine.
This is getting curiosier and curiosier... I'd be very interested to know
where does this -1 come from exactly, i.e. which API function exactly fails
for you?
R> Anyways, once I get a chance, I'll step into the wxWidgets code in the
R> debugger -- it looks like there have been several recent changes to button
R> sizing for Windows, so I'll see if I can't spot the problem. In the
R> meantime, I wanted to check to see if anyone else has run into it, and/or
R> has suggestions for workarounds or where to look for the root of the
R> problem.
There are not supposed to be any button sizing regressions in 3.1.5. This
doesn't mean there are none, of course, but I don't see any in my
(admittedly cursory) testing, so any additional information would be very
welcome. Please check if you see any errors about Win32 API functions
failures in the debug output (e.g. just run the program under debugger and
keep an eye on the output window).
Thanks,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/