I am using Delphi 7 and a TRichEdit component that has various colored lines in it. For example, text on lines 1 through 10 is clRed, lines 11 through 14 are clGreen, lines 15 through 25 are clRed, lines 26 through 27 are clGreen, etc...
What I would like to do is generate events that would displaying only clRed lines, or only clGreen lines. IOW, on a TRadioButton.OnClick event I would like all the clGreen text to disappear. I figure that I will have to play an optical trick on the user, using two TRichEdit components: one containing the original multi-color text, and a second component that shows the text with the clGreen text missing. By turning off/on the TRichEdit.Visible property I can acocmplish this trick, however, I still need to know how to pull/scrape/copy all of the green text from the one TRichEdit to the second one.
Thanks.
ASKED:
Jun 27 2009 6:31 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _