With TRichViewXml can I intercept the saving and loading of image files?

General TRichView support forum. Please post your questions here
Post Reply
edwinyzh
Posts: 104
Joined: Sun Jun 05, 2022 2:22 pm

With TRichViewXml can I intercept the saving and loading of image files?

Post by edwinyzh »

With TRichViewXml can I intercept the saving and loading of image files?

The idea is not to save the images to the xml file but provides an event which allows me to save the images to anywhere. Same applies to loading of the images.

The idea is to avoid duplicated images being saved.

Thanks.
edwinyzh
Posts: 104
Joined: Sun Jun 05, 2022 2:22 pm

Re: With TRichViewXml can I intercept the saving and loading of image files?

Post by edwinyzh »

Maybe `TCustomRichView.OnRVFPictureNeeded` is what I need? Does the event works when saving to/loading from xml?

Thanks.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: With TRichViewXml can I intercept the saving and loading of image files?

Post by Sergey Tkachenko »

In the current version, TRichViewXML does not call any events in this case.
In the next update, OnSaveImage2 and OnImportPicture will be used.
edwinyzh
Posts: 104
Joined: Sun Jun 05, 2022 2:22 pm

Re: With TRichViewXml can I intercept the saving and loading of image files?

Post by edwinyzh »

Sergey Tkachenko wrote: Wed Jun 22, 2022 2:15 pm In the current version, TRichViewXML does not call any events in this case.
In the next update, OnSaveImage2 and OnImportPicture will be used.
Great!
Post Reply