WPCubed Product Support

How can I tell when an embedded image has been deleted by user?

Hello. I am storing data in a database about inserted images. I need to delete the record from the database when the user deletes the image from the text. How can I tell when the user deletes a particular image from the text?

I have tried adding:
txtObj.OnDestroy := DeleteImage;
when inserting the image into the richtext.

But that only works during that session of the program.

Any help appreciated.

#1 ♥ 0
4.1k Views 2 users read 1 min
support

Hi,

you can use the procedure
procedure ImageGetList(list: TWPTextObjList; FromAllBlock: Boolean = FALSE);

to get a list with all your images. This you can use to apply your event after loading a text.

Julian

#2 ♥ 0
This category is archived. No new posts are possible.