Get image ID/object Inserted in a Tcxrichedit

Asked

Viewed 69 times

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?

  • Via Clipboard. Clipboard.Assign(img); // img is a Tpicture that comes from a Dialog. After: Richedit.Pastefromclipboard;

  • You’ve seen this one post? As it inserts the images in a different way, it can facilitate you to achieve your goal.

  • Thank you! I will explore this possibility.

  • 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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.