Solved

Adding URL hyperlink functionality to RichEdit

Posted on 2004-04-24
5
272 Views
Last Modified: 2013-11-22
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"
0
Comment
Question by:hutelihut
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
shaneholmes earned 125 total points
ID: 10909945
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
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10909947
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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now