[wx-dev] 2.8.5 rc2, wxGTK top level positioning

Paul Cornett pc-wx at bullseye.com
Wed Aug 29 22:50:39 PDT 2007


Vadim Zeitlin wrote:
> On Wed, 29 Aug 2007 10:05:55 -0700 Paul Cornett
> wrote:
> 
> PC> I'm working on the caching idea, but IMO, it would be better if
> PC> wxWidgets sizes for TLWs did not include the WM decorations
> PC> (which is how it used to be for wxGTK) because it just can't be
> PC> done right, the X Window system does not support it.
> 
>  I don't think this can be changed, it will affect all the existing
> code. What we can do is to advise people to use SetClientSize()
> inside their wxFrame-derived class ctor instead of specifying the
> size in the base class ctor invocation. But other than that we still
> have to guess the decorations size somehow...

I didn't really expect any support for the idea. But since wxGTK 2.8
works that way right now, I don't know what existing code you're talking
about...




More information about the wx-dev mailing list