wxSizer Question
Stephan Rose
kermos at somrek.net
Sat Sep 1 17:51:35 PDT 2007
On Sat, 2007-09-01 at 23:53 +0200, Vadim Zeitlin wrote:
> On Sat, 01 Sep 2007 00:29:33 +0200 Stephan Rose <kermos at somrek.net> wrote:
>
> SR> Now I seem to have found a work around for that which looks something
> SR> like this:
> SR>
> SR> SetClientSize(...);
> SR> SetMinSize(GetSize());
> SR>
> SR> So far, this seems to work. Though I think what's really needed is a
> SR> SetMinClientSize() function that would be much more logical and
> SR> cleaner.
>
> I must admit that I don't see why shouldn't we have such SetMinClientSize()
> method (which could be implemented using just the 2 lines from above as I
> don't think there is any better way of doing this). But maybe I'm missing
> something...
>
> Regards,
> VZ
Well the only concern I had was that I wasn't sure if it's safe to do
the above under all circumstances on all platforms. Such as potentially
the size not updating until some event is triggered for instance. I have
a tendency to imagine worst-case disasters. =)
But if it actually is safe to do the above at any time, then yea I can't
think of a better way either. =)
Oh btw, on that note...a little screenshot of my current project. ;)
http://www.somrek.net/wx.png
Stephan
More information about the wx-users
mailing list