Page 1 of 1

Persistent Reference to an Image

Posted: Tue Mar 13, 2012 5:19 am
by Mark Andrews
I have a TRichViewEdit that contains an invisible table with multiple cells. Two of the cells each contain an image and I'd like to do the following:

When the user resizes the image in one cell it causes the image in the other cell to automatically resize.

It seems I could do this easily if I could obtain a persistent reference to each image at the time they are pasted or inserted.

Is such a thing possible or can anyone recommend an alternative?

Posted: Tue Mar 13, 2012 7:37 pm
by Sergey Tkachenko
For example, you can assign an unique identifier to the image item text, and search the image by its identifier... Would this solution be ok?
But I do not understand how you want to define these images, if they can be either inserted or pasted...