Page 1 of 1

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

Posted: Tue Jun 21, 2022 3:18 am
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.

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

Posted: Tue Jun 21, 2022 3:24 am
by edwinyzh
Maybe `TCustomRichView.OnRVFPictureNeeded` is what I need? Does the event works when saving to/loading from xml?

Thanks.

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

Posted: Wed Jun 22, 2022 2:15 pm
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.

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

Posted: Wed Jun 22, 2022 2:47 pm
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!