From: Ian L. <ig...@ea...> - 2004-03-25 17:15:13
|
On Thu, Mar 25, 2004 at 12:04:59PM +0100, Daan Leijen wrote: > On Wed, 24 Mar 2004 18:52:52 +0000, Ian Lynagh <ig...@ea...> wrote: > > >Finally, when my program starts up it decides to be as small as > >possible. Again I haven't found the right way of convincing it to start > >off at some sensible size. > > I just found out that you can just say: > > >set f [clientSize := sz 300 300] > > after setting the "layout" and the window will have that initial size. > (on windowsXP at least) Aha, yup, thanks! I suspect it was the difference between set f [layout := fill (widget s), clientSize := sz 300 300] and set f [clientSize := sz 300 300, layout := fill (widget s)] that caught me out (but that's a wxWidgets issue rather than a wxHaskell one, of course). Thanks Ian |