2 things I noticed today (wxWidgets 2.9 latest SVN)

Stephan Rose kermos at somrek.net
Thu Sep 13 16:02:45 PDT 2007


First:

I noticed some weird behavior today when using GetPixelSize() while
testing my Windows build.

Under GTK, GetPixelSize returns a positive value for the font height as
I would expect. 

Under windows however, it returns a negative value.

My current workaround is to wrap the returned height with abs() and
things seem to work fine.

Second:

My window resizing method that I've been using in one of my controls
doesn't seem to work under Windows with sunken borders.

The method was as follows:

SetClientSize(...);
SetMinSize(GetSize());

This appears to work perfect on GTK to set my controls' min size
according to the client size I want, but under Windows with sunken
borders it ends up too small.

If I use wxBORDER_SIMPLE it appears to work.

Stephan





More information about the wx-users mailing list