[wx 2.8.7 OSX gcc] wxRichTextCtrl fires an EraseBackgroundEvent each times caracters are pressed

Julian Smart julian at anthemion.co.uk
Fri Feb 8 02:27:34 PST 2008


Phil White wrote:
>   Hi, I was wondering how come each times a caracter is pressed in a 
> richtextctrl, the parent's wxEraseEvent is fired?? It is a normal 
> behavior? On wxMSW and wxGTK, it doesn't fire.
>
>   Any other person has come across the same problem?
I guess wxMac doesn't check for the wxBG_STYLE_CUSTOM background style 
to suppress erase events (Refresh() will be called each time a character 
is pressed, hence the erase event). However wxRichTextCtrl defines an 
empty erase event handler to ignore it anyway. Is it a problem?

Regards,

Julian

-- 
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD:     www.anthemion.co.uk/dialogblocks





More information about the wx-users mailing list