From: Heinrich A. <apf...@qu...> - 2012-09-25 08:41:00
|
Henning Thielemann wrote: > When switching from wxcore-0.13.2 to GIT HEAD from > https://github.com/jodonoghue/wxHaskell the TextCtrl does no longer use a > monospaced font. This may be caused by the recent patch commented with > > "Fix for unexpected TextCtrl behaviour on OS X. This is the equivalent > of patch f225d0c on master." > > I create the text field this way: > WX.textCtrl panel [ font := fontFixed, wrap := WrapNone ] > > In the past TextCtrl always used a monospaced font, but when I entered > text at the end of a text field it happened sometimes that the font had no > longer fixed width characters. This might be a wxwidgets bug or even a gtk > bug. However, now the TextCtrl does not use the monospace font anymore. You can use the textCtrlEx function and pass additional style flags to it to create text controls with the old behavior. I think the previous source code was textCtrlEx parent (wxTE_MULTILINE .+. wxTE_RICH2) props Best regards, Heinrich Apfelmus -- http://apfelmus.nfshost.com |