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,
TRichView and URL's
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.