Extract block text and put it back
Posted: Sun Dec 16, 2007 7:17 pm
Sorry for my english...
I want to extract a text-only fragment from a certain position in a RTF (any number of items), change this text, and put it back.
2 questions:
1. How can I know that in TRichViewEdit it's a difference between:
Text1 [Objects] Text2
and
Text1 [Objects]
Text2
In a normal text the difference is #13#10 in Windows and #13 in Linux.
I ask because the final text will be in the first case "Text1 Text2" and in the second case "Text1#13#10Text2".
2. What function could I use to keep the format of the text in sync with my modifications?
Example:
"Hello [bold]world[nobold]" >> "Hi [bold]world[nobold]".
Thanks for your reply...
I want to extract a text-only fragment from a certain position in a RTF (any number of items), change this text, and put it back.
2 questions:
1. How can I know that in TRichViewEdit it's a difference between:
Text1 [Objects] Text2
and
Text1 [Objects]
Text2
In a normal text the difference is #13#10 in Windows and #13 in Linux.
I ask because the final text will be in the first case "Text1 Text2" and in the second case "Text1#13#10Text2".
2. What function could I use to keep the format of the text in sync with my modifications?
Example:
"Hello [bold]world[nobold]" >> "Hi [bold]world[nobold]".
Thanks for your reply...