TRichView and URL's

General TRichView support forum. Please post your questions here
Post Reply
LonelyRanger
Posts: 11
Joined: Sun Jul 23, 2006 6:11 am

TRichView and URL's

Post by LonelyRanger »

Hello,

I have viewed the demos and searched extensively in this forum but I am still having a problem autodetecting URL's in a "TRichView". From what I can gather, the demos are based around TRichViewEdit as I get compile errors.

eg: Incompatible types: 'TCustomRichViewEdit' and 'TRichView'

Could you please point out what I am doing incorrect please or how to go about it. Please note this is in a TRichView, not a TRichViewEdit.

Thankyou in Advance,
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Obviously, it's not possible to detect URLs on typing in TRichView. Because TRichView is not an editor and you cannot type in it. Use TRichViewEdit instead.

As for detecting all URLs in document, procedures ScanURLs and ClearHypertext (from the demo's ScanURLs.pas) can be called both for TRichView.RVData and TRichViewEdit.RVData.
LonelyRanger
Posts: 11
Joined: Sun Jul 23, 2006 6:11 am

Post by LonelyRanger »

Thank you. That fixed it.
Post Reply