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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to