From: David R. <dr...@jd...> - 2003-10-10 11:02:14
|
On Thu, Oct 09, 2003 at 02:16:32PM +0200, Daan Leijen wrote: > Ha, great that you found out how to solve these bugs! I think I once > thinkered with spaces etc. on the check boxes because of this. > > > A fix is after creating a control q (or modifying its label) > > is to call: > > > > > bs <- get q bestSize > > > set q [clientSize := bs] > > It seems to me that wxWindows should handle this automatically, not that > the user of a library should be concerned about it. Well, wxwin handles it automatically if the label is set in the control constructor, which is what is almost always done in C++. When changing the label later, you don't necesarily want to resize the control, since that probably will involve redrawing the entire window, which could be visually unappealing... > Anyhow, we can add these calls easily to the WX layer. ... > ps. I am fairly busy with other stuff at the moment. If you feel like > it, maybe you can change the WX layer yourself to include your size fixes > (and maybe with a little sample). I can than integrate them into the CVS > sources (or give you write access) I don't have time (or the wxhaskell source...) at the moment either, but if I get around to it, I'll let you know. -- David Roundy http://www.abridgegame.org |