0
Is there any way to get the ID of an image or object inserted in a Richedit? I tried to:
IDRichEdit[I]:=RichEdit.Lines.Objects[I].GetHashCode;
But gives Accessviolation.
Update: The image/object has the following character inherent in Richedit: http://www.fileformat.info/info/unicode/char/fffc/index.htm
The problem is that it stays the same when inserted different objects or images.
Just that I can assign an ID to each of these Chars.
Thank you.
A question, as that object/image is inserted in
RichEdit
?– Andrey
Via Clipboard. Clipboard.Assign(img); // img is a Tpicture that comes from a Dialog. After: Richedit.Pastefromclipboard;
– Bruno Ribeiro
You’ve seen this one post? As it inserts the images in a different way, it can facilitate you to achieve your goal.
– Andrey
Thank you! I will explore this possibility.
– Bruno Ribeiro
This possibility is not compatible with my version of Delphi [Delphi 2010]. I am trying this way -> http://stackoverflow.com/questions/1989555/inserting-ole-object-to-trxrichedit
– Bruno Ribeiro