Using TRichEdit: What color is this line?

25 pts.
Tags:
Delphi
Delphi 5
Delphi 5.0
Delphi 7
Delphi 7.0
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: June 27, 2009  6:31 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following