Delphi and Kylix

Moderators: pritaeas
Number of threads: 7244
Number of posts: 19051

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to get text Color of TRichEdit Posted by dubi on 7 Sept 2005 at 6:56 PM
I am in need to know how to get the text color of
a particular line in a TRichEdit.
The lines in my RichEdit has one or more differnt colors.

How can I know the text color of a particuluar Line.
For example,if the 5th line text is Blue color and the
other Lines Black,how can I know that 5th line text is Blue in color.
The properties DefAttributes and SelAttributes are only to set
the color and change color for selected Lines.
Is there any way to get what color is the text for a particular line.

Bigger thanks for your replies.
Report
Re: How to get text Color of TRichEdit Posted by zibadian on 7 Sept 2005 at 9:29 PM
: I am in need to know how to get the text color of
: a particular line in a TRichEdit.
: The lines in my RichEdit has one or more differnt colors.
:
: How can I know the text color of a particuluar Line.
: For example,if the 5th line text is Blue color and the
: other Lines Black,how can I know that 5th line text is Blue in color.
: The properties DefAttributes and SelAttributes are only to set
: the color and change color for selected Lines.
: Is there any way to get what color is the text for a particular line.
:
: Bigger thanks for your replies.
:
You can also get the color using the SelAttributes. Just select a part of the line and check out the SelAttributes.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.