[wx-dev] [all] should SetSize() respect size hints?

Robin Dunn robin at alldunn.com
Tue Feb 12 16:29:18 PST 2008


Vadim Zeitlin wrote:
> On Tue, 12 Feb 2008 03:38:41 +0100 I wrote:
> 
> VZ>  Does anybody have any better ideas about what should we do? To summarize,
> VZ> the best course of action I see right now is to:
> VZ> 
> VZ> 1. Respect the size hints in wxWindow::SetSize() under wxMSW too
> VZ> 2. Add wxWindow::ForceSetSize() (which would probably reset the hints)
> VZ> 3. Use it in wxSizer::Fit()
> 
>  Thinking more about this, I can see an alternative, less backwards
> compatible but maybe more sensible solution: maybe we don't need the size
> hints for non-TLWs at all? We already have the possibility to set the
> minimal size of a child window using sizers and I'm quite sure that nobody
> ever used the possibility to set its maximal size anyhow. So what about
> simply removing SetSizeHints(), SetMinSize() and SetMaxSize() from wxWindow
> and only keeping them in wxTLW? This clearly is backwards incompatible but
> would make the things much simpler and so might be worth it.
> 
>  What do you think?

My initial reaction is that I would rather keep at least SetMinSize, but 
I haven't given this, or your original email, a whole lot of thought yet.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-dev mailing list