1. RichEdit control
- Posted by ryanj Jul 17, 2009
- 873 views
How do I use rich text formatting in a RichEdit control? I tried using formatting, but it's just showing raw text instead. Is there something i need to do to enable formatting first?
2. Re: RichEdit control
- Posted by ryanj Jul 17, 2009
- 869 views
Heh, maybe i should have looked a little bet deeper in the win32lib documentation before i posted this! I guess my brain doesn't work too well when i stay up till 5am...
I will answer my own question:
putStream ( integer id, integer flag, sequence text )
Load text into a RichEdit control from a text sequence.
Use flag StreamText to indicate that contains plain text, or StreamRTF to indicate that text contains rich text. This can be combined with StreamSelection so that only any selected text in the control is replaced with text data.
Hey, it works just like the documentation says it does! Maybe i should get some sleep...