Richard
Richard

Reputation:

How can I add a HyperLink in TRichEdit using Delphi

How can I add a HyperLink in a TRichEdit within VCL (using Delphi Programming Language).

I need to have something like:

"This is my text, click here to do something."

Upvotes: 4

Views: 4600

Answers (2)

X-Ray
X-Ray

Reputation: 2846

i don't know if it's mentioned in the About.com article but i think it's worth mentioning that the hyperlink in TRichEdit only works if the TRichEdit itself is directly placed on the form (not in a panel).

http://www.scalabium.com/faq/dct0146.htm

Upvotes: 3

stukelly
stukelly

Reputation: 4307

According to this article on delphi.about.com

Unfortunately, Delphi's implementation of the RichEdit control leaves out a lot of the functionality found in more recent versions of this control (from Microsoft).

You can add your own functionality as discussed here.

NOTE: Delphi 2009 has just been released, so the TRichEdit control may have been updated to support mode features.

Upvotes: 4

Related Questions