From: David R. <dr...@jd...> - 2003-10-13 17:54:52
|
On Mon, Oct 13, 2003 at 07:08:48PM +0200, Daan Leijen wrote: > > I have yet another difficulty I've run into. When a widget's size > > changes, I can't figure out how to inform its parent that it needs to > > recalculate its layout. > > Yeah, this is the problem I pointed at a few mails ago. We/I should > really revise the sizing model in wxHaskell. The problem is that this > model is not really well specified in wxWindows (as they tend to not use > resizeable dialogs etc) and it takes some experimentation to get it > working well. I agree. Sizing is probably the trickiest thing to get right in cross-platform gui code. Because of the need for backwards-compatability, wxwin has an awful lot of confusing cruft in this area, so rethinking things for wxhaskell sounds like a great idea. > In this case, I have found the problem :-) I had forgotten to > set the "wxADJUST_MINSIZE" flag in the code for sizers... talking > about obscure behaviour :-) Thanks for the quick response (and good luck on getting your thesis done)! > ... > > The fix is in the latest cvs HEAD. (note that anonymous checkouts > might be 24 hours late? you can check by searching for the > wxADJUST_MINSIZE word). If you can't compile wxHaskell by yourself > and really need this fix, drop me a mail and I'll try to provide an > interim release later this week. Anonymous CVS doesn't seem to have the fix yet... I'll wait patiently. :) -- David Roundy http://www.abridgegame.org/darcs |