?
Solved

url highlighting in richedit

Posted on 2003-03-22
6
Medium Priority
?
295 Views
Last Modified: 2013-11-22
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
Comment
Question by:zicodt
[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
  • 3
  • 2
6 Comments
 

Expert Comment

by:Dudic
ID: 8189392
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
 
LVL 2

Expert Comment

by:Zip58
ID: 8190345
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
 
LVL 1

Author Comment

by:zicodt
ID: 8192409
Zip,

I didn't find one for delphi 7, do you know if it works with it?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 2

Accepted Solution

by:
Zip58 earned 100 total points
ID: 8193588
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
 
LVL 1

Author Comment

by:zicodt
ID: 8195718
Thanks dude!

That worked...

Thanks for the replys...
0
 
LVL 2

Expert Comment

by:Zip58
ID: 8197219
Hi zicodt

Always at your service

Regards

Zip58
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

752 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