[wxMac 2.8x] wxWindow::DoGetBestSize bug still not solved
Vadim Zeitlin
vadim at wxwindows.org
Fri Apr 13 16:52:24 PDT 2007
On Fri, 13 Apr 2007 16:48:53 -0700 Robin Dunn <robin at alldunn.com> wrote:
RD> The code I was thinking of is at the end of wxWindowBase::DoGetBestSize,
Oops, yes, indeed, thanks, I remember now (I even seem to remember that I
added it myself). Anyhow, looking at this code I understand even less how
can we get (0, 0) best size: the client size may be (0, 0) but surely the
full window size must be greater if scrollbars are shown. This really needs
to be debugged but I won't have time for this today...
RD> and a quick test in PyCrust shows me that wxMac does adjust the client
RD> size when scrollbars are shown. However that adjustment obviously only
RD> happens when the default DoGetBestSize is being used. Other controls
RD> that may possibly have scrollbars and have their own DoGetBestSize will
RD> not get adjusted.
Which would also be solved by having a DoGetBestClientSize() virtual which
could be overridden if the default scrollbar handling logic is appropriate.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list