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?

[Webinar] Streamline your web hosting managementRegister Today

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
All Courses

From novice to tech pro — start learning today.