I am trying to display some rich text inside a dialog. Currently I am
using textctrl with TE_RICH2 and LoadFile() but it displays the rtf
code (another email on this list dated May 31 confirms that it is not
possible to show RTF files).
Next I tried wxHtmlWindow and called LoadPage() on the original RTF
file converted to HTML. However, things with <sup> are not
superscripted in the window. (and the documentation does not list the
sup tag as one of the supported tags )
Can anyone suggest a good alternative to either display the original
the RTF file or the HTML fiile without losing formatting information?
Or any other ideas to display rich text are welcome!
Thanks,
-Kartic
PS: Has RTF never worked or stopped working starting with 2.6.0.0?
To get RTF working with Transana, we had to write a Parser to translate
between the RTF specification and wxSTC. wxSTC has a couple of limitations,
like a limit on the number of styles allowed in a document and problems with
line spacing. Still, it works well enough for our purposes. (I have to
admit, I don't know if it supports superscripting at the moment.)
You're welcome to take a look at our source code, which you can access
through the Open Source Development page at http://www.transana.org .
David
···
-----Original Message-----
From: K K [mailto:kartic0@gmail.com]
Sent: Friday, June 17, 2005 2:30 PM
To: wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] Displaying Rich Text in a Dialog
Hello,
I am trying to display some rich text inside a dialog. Currently I am
using textctrl with TE_RICH2 and LoadFile() but it displays the rtf
code (another email on this list dated May 31 confirms that it is not
possible to show RTF files).
Next I tried wxHtmlWindow and called LoadPage() on the original RTF
file converted to HTML. However, things with <sup> are not
superscripted in the window. (and the documentation does not list the
sup tag as one of the supported tags )
Can anyone suggest a good alternative to either display the original
the RTF file or the HTML fiile without losing formatting information?
Or any other ideas to display rich text are welcome!
Thanks,
-Kartic
PS: Has RTF never worked or stopped working starting with 2.6.0.0?
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org