views:

22

answers:

0

Hi!

I have MyTextCtrl(wx.TextCtrl) class that always sets wx.TE_RICH style for its objects (I need colourful letters :) and support for arabic letters), but when someone pastes or drops formatted text into MyTextCtrl its style is preserved (for example fontsize=150) which is thing I don't want to happen.

Is there any way to ignore or reset text formatting when text is dropped or pasted into TextCtrl?