From: Deling R. <re...@ee...> - 2005-11-29 18:36:01
|
I later figured out it's not the problem of wxHaskell, but rather wxMac itself. The problem is with non-wrapping TextCtrl. I am getting the same result with cpp programs if I set the wxTE_DONTWRAP style. I think I should report this bug upstream to wxWidgets. Anyway, here is the code if anyone wants to try it on other platforms. Thank you. Regards. Deling module Main where import Graphics.UI.WX main :: IO () main = do start demo demo :: IO () demo = do f <- frame [text := "Hello World"] t <- textCtrl f [wrap := WrapNone, font := fontFixed {_fontSize=30}] set f [layout := fill $ widget t, outerSize := sz 600 400] return () On Nov 29, 2005, at 1:54 AM, Arjan van IJzendoorn wrote: > Hi Deling, > > > I am wondering if anyone is on the same boat >> and if so do you have any solution? > > Could you please send the source code? I can then check whether the > same happens on Windows. > > Regards, Arjan |