What is TextCtrl (style=wx.TE_RICH2) for?

I want to display a RichText file in a TextCtrl with style=wx.TE_RICH2 but I don't know how.

It seems that TextCtrl has no ability to parse/decode rtf data, but it is possible to use a standard Rtf Editor (e.g. WordPad),
and, with copy/paste, I can display it properly...

Is there any possibility to read a rtf file and didplay it with any wxWidget?
Any comments will be appreciated.
AB

António Barbosa (GN/dpi) wrote:

I want to display a RichText file in a TextCtrl with style=wx.TE_RICH2 but I don't know how.

It seems that TextCtrl has no ability to parse/decode rtf data, but it is possible to use a standard Rtf Editor (e.g. WordPad),
and, with copy/paste, I can display it properly...

Is there any possibility to read a rtf file and didplay it with any wxWidget?

Not yet, although it has been discussed several times and is high on most people's wish list.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!