Hello,
You have an interesting demo called "ScanURLs" which work fine for custom URL for example.
But how to implement is in a TDBRichView/TDBRichViewEdit ?
Problem it is that this component use it"s own loadfromstream + format !!!
URLScan and TDBRichView ?
-
- Site Admin
- Posts: 17842
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: URLScan and TDBRichView ?
This demo includes URLScan.pas unit containing all the important functions that are used in this demo.
ScanURLs() and ClearHypertext() work for TRichView, TRichViewEdit, TDBRichView. TDBRichViewEdit.
DetectURL(), TerminateHyperlink(), PasteTextWithURLs() work for TRichViewEdit and TDBRichViewEdit.
ScanURLs() and ClearHypertext() work for TRichView, TRichViewEdit, TDBRichView. TDBRichViewEdit.
DetectURL(), TerminateHyperlink(), PasteTextWithURLs() work for TRichViewEdit and TDBRichViewEdit.
Re: URLScan and TDBRichView ?
Yes it can work on a TCustomRichView but when (which event) you call it ?
Because TDBRichView automatically load and format is content !
Because TDBRichView automatically load and format is content !
-
- Site Admin
- Posts: 17842
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: URLScan and TDBRichView ?
Use OnLoadDocument event.
This event occurs after loading a document from DB.
This event occurs after loading a document from DB.
Re: URLScan and TDBRichView ?
Hello,
So I have done :
But it's seems to be never executed ?
Unfortunately I use a TcxDBTRichViewEdit where OnLoadDocument isn't published ?!
So I have done :
Code: Select all
MyTcxDBTRichViewEdit.InnerEditor.OnLoadDocument:= MyTcxDBTRichViewEditOnLoadDocument;
-
- Site Admin
- Posts: 17842
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: URLScan and TDBRichView ?
For TcxTRichViewEdit, use Properties.OnLoadValue event.