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.

    • Offizieller Beitrag

    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