[wx-dev] [all] should SetSize() respect size hints?
Paul Cornett
pc-wx at bullseye.com
Tue Feb 12 10:22:54 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
> VZ> summarize, 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
> VZ> hints) 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.
+0.5
I would prefer this to adding ForceSetSize(), but I think it might
break alot of existing code. What about just changing
wxWindow::SetSize() to not be restricted by the size hints? Also, since
this does not affect TLWs, does it actually fix the problem with
collapsible pane you mentioned?
More information about the wx-dev
mailing list