• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

url highlighting in richedit

This must be a simple question but I can't do this...

I have a richedit, and I want to highlight the url's in it, I also want to be able to change the color and style (underline etc) of the highlighted url, also it must launch the default browser when the user clicks on the url..

Thanks...
0
zicodt
Asked:
zicodt
  • 3
  • 2
1 Solution
 
DudicCommented:
Hi,
I'm working with delphi 6 and I think that there isn't a built-in option to do this. If you use RichEdit, you must capture the events, like keyPress, or so, and to do whatever you want. you might look for a newline, and analyze if this is a proper url, and then underline it. about openning the browser after click, i don't know.
0
 
Zip58Commented:
Hi zicodt

I think its better to use the richedit componnent from Rx Controls for this.

It have a property AutoURLDetect and a event onURLclick

This is the link for Delphi 6

http://sourceforge.net/projects/rxlib

Ps. For other versions to a search on Google

Regards

Zip58
0
 
zicodtAuthor Commented:
Zip,

I didn't find one for delphi 7, do you know if it works with it?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Zip58Commented:
Hi zicodt

You can try this link

http://delphi.icm.edu.pl/ftp/d70free/Rx275D7.zip

and Rx Controls is also a part off the JEDI-VCL components

This is the website:

http://jvcl.sourceforge.net/

If you install the JEDI-VCL components see the component

 JvxRichEdit

Regards

Zip58
0
 
zicodtAuthor Commented:
Thanks dude!

That worked...

Thanks for the replys...
0
 
Zip58Commented:
Hi zicodt

Always at your service

Regards

Zip58
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now