Re: [wxhaskell-users] newbie question, why clientSize doesn't affect textEntry?

2011-06-01 Thread Jeremy O'Donoghue
The full explanation is a bit tricky (tricky enough that I don't fully understand or I would have fixed it!), but results from the way in which Layout works. Layout is a neat idea, but has a number of quirks. The main thing to realize is that Layout creates an hierarchy of Sizer instances which con

Re: [wxhaskell-users] newbie question, why clientSize doesn't affect textEntry?

2011-05-31 Thread carlos gomez
I don't understand too. Looks like some misterious thing is happening. But you can use the 'mimsize' layout funcion from WXCore in order to get what you want. Here the code: module Main where import Graphics.UI.WX main::IO() main = start gui gui :: IO () gui = do f <- frame [text := "timer"

[wxhaskell-users] newbie question, why clientSize doesn't affect textEntry?

2011-05-31 Thread 诺铁
Hi, I am learning wxHaskell,and trying to create a small timer app. I don't understand why in following code ,clientSize only affect button control module Main where import Graphics.UI.WX main::IO() main = start gui gui :: IO () gui = do f <- frame [text := "timer"] panel