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

Stefan Csomor csomor at advancedconcepts.ch
Tue Feb 12 23:12:17 PST 2008


Hi

> Agreed.  This nonsense really ought to be removed.  The best
> replacement IMO is to either use the natively implemented "best
> fitting" size as if it were the absolute minimum acceptable (this is
> how I implement it in wxCocoa at any rate) or if there are cases where
> "best fitting" must arbitrarily mean something larger than the minimum
> then some new natively implementable value needs to be implemented.

on the HIView side controls can expose size constraints (min/max), but since
we are running our own sizer code this doesn't really matter. We also have
the Best/Optimal Bounds. If we allow ellipses in text, then the minimum size
can be smaller than the best size, both for simple eg static text, as also
for lists (there eg the mimum size would be eg X chars of text + scrollbar )

Best,

Stefan







More information about the wx-dev mailing list