Solved

Adding URL hyperlink functionality to RichEdit

Posted on 2004-04-24
5
276 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb download file link ? 1 184
Delphi 2 90
Press three keys together and trigger a function 3 75
can't find the executable in Simulator 1 128
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

732 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