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.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.
Your password has been sent to:email@example.com
To follow this tag...
Thanks! We'll email you when relevant content is added and updated.
Share this item with your network: