Adding URL hyperlink functionality to RichEdit

How can I add a URL hyperlink into a tRichEdit?

Important: The link-name migth not be the same as the URL-address - fx:

"Click HERE to go to the Experts-exchange-homepage"
hutelihutAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
shaneholmesConnect With a Mentor Commented:
Add Richedit to your uses clause and then the followinf to your Form's OnCreate event

procedure TForm1.FormCreate(Sender: TObject);
begin
 SendMessage(RichEdit1.Handle, EM_AUTOURLDETECT, 1, 0);
end;


Shane
0
 
shaneholmesCommented:
If you want to add a Url which may have a different caption, then you will need a third party solution, cause its not supported in TRichEdit

SHane
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.