Moving font styles from one RichEdit to another
Posted on 2002-03-22
I'm completely desperate here, I've been working on this stupid problem for over 6 months now and the deadline is coming up quick.
First off, I'm using BCB5. I have 2 RichEdits, one to type text, and one to display the result. In the one that the user can type in, they can add bold and italics, underline, etc.
for example (bear with me, please) a message in the RichEdit1 could look like:
enter <bold>cyprus106</bold> get user <italics>stuff</italics>
The user sends the data to my parser, and then the second RichEdit displays it. It has the same text, but all of the bold, italics and underlining is gone. I have to have those font styles.
I know I can use streams to keep the text...
I can use:
But I CANNOT use:
I have to keep the previous messages that the user sent. When RichEdit2 loads from the stream, it clears out all of the previous messages. I can't have this.
If at all possible, I would prefer not to use streams.
I can't save to and load from a file. We tried that, We DEFINATELY can't use it.
And I can't cut/copy to and paste from the clipboard. I have users that cut commands and paste them later. Saving to the clipboard will clear their pastes. That's a bad idea.
I'm completely out of ideas and incredibly frusterated. I cannot find anything anywhere about how to do this and I HAVE to have it done. I'm at my witts end. Can ANYBODY help me >> ?