Solved

Adding URL hyperlink functionality to RichEdit

Posted on 2004-04-24
5
274 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 216
Delphi Mdi application Child forms get behind control 7 211
FMX and jaudiotracker playing memory stream 29 78
Dynamically Created Query 3 55
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 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