From: Daan L. <daa...@xs...> - 2004-04-03 20:48:19
|
Hi Huschi, > I'm trying to write an application with quadratic buttons of size > 200x200. I' trying the following code but my buttons don't get > quadratic. Is the button not quadratic at all? or just a little bit off? (if so, try "clientSize" or "bestSize" instead of "outerSize") > gui = do > f <- frame [ text := "An application" ] > b <- button f [ text := "Quit", on command := close f, > outerSize := size 200 200 ] > set f [ layout := widget b ] I think that once you set the "layout", that the size of the button is changed? Maybe you should try to say something like: > set f [ layout := minsize (sz 200 200) (shaped (widget b)) ] (Or maybe set the "bestSize" on the button instead of using "minsize" ?) You can read about layout at: <http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.Layout.html> I hope this helps, -- Daan. |