Link to home
Start Free TrialLog in
Avatar of PeterDelphin
PeterDelphin

asked on

How to change URL color in TJvRichEdit?

In TJvRichEdit Version 3.48 (from JVCL) there is an AutoURLDetect property.

The URLs have a dark blue color which makes them difficult to read on a dark background:

User generated image
So how can I change the URL color to a lighter blue color both at design-time and at run-time?
ASKER CERTIFIED SOLUTION
Avatar of Sinisa Vuk
Sinisa Vuk
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PeterDelphin
PeterDelphin

ASKER

I use TJvRichEdit also for another reason.

Could you elaborate with some working code on your second "this" link and on the "CFE_AUTOCOLOR" link.

Thanks.
Changing the color of the auto recognized link hasn't been implemented yet .
It seems you have to provide a friendly link name for each link and for that friendly link name, you can set the color

http://blogs.msdn.com/b/murrays/archive/2009/09/01/automatic-richedit-hyperlinks.aspx#10357442

here is some more posts which i found about this
http://blogs.msdn.com/b/murrays/archive/2015/06/08/autolink-color-contrast.aspx
http://blogs.msdn.com/b/murrays/archive/2015/03/27/richedit-colors.aspx
Found conversation with same question here and thik that is a close but with lot of work. I've try it - but no success until now. Think - it is faster to change your RichEdit background color to something else...

edit:
found this component - just to show how should works...
TRichEditWithHyperlinks v.1.0
http://www.torry.net/vcl/edits/rich/re_lne.zip

or this one....