Page 1 of 1

Highlighting URLs

Posted: Wed Jan 10, 2007 5:57 am
by gavin310
Hi, I'm a registered user of TRichView but I can't find how to log into the member's area. Or maybe this is it? Anyways...

I just need URLs to auto-highlight in my RichViewEdit and also click to the website. I looked at the example in "Demos\Delphi\Assorted\Hypertext\URLs" and implemented the code into my application, but the "url" variable when you click a URL only contains the first letter of the URL. I've compared the settings of my RVE and the demo RVE side-by-side and they are the same. I can't figure out how to get this working. Please help ASAP!

Thanks,
Gavin

Posted: Thu Jan 11, 2007 2:03 pm
by Sergey Tkachenko
There is a bug in URLScan.pas in this demo: for Unicode text items, it assigns Unicode strings to tags.
The fixed version is here:
http://www.trichview.com/support/files/urlscan.zip