To Sergey
How can I insert a OLE Object in TRichviewedit? I found the TRichviewedit has some evevt(as OnOleDragEnter...), if use those event to realize insert OLEObject?
In addition, If have better method to realize insert OLE Object?
You can use a TOleContainer, and simply insert it with method InsertControl. A few extra things to be done to handle resizing properly, but basically, it works. I beleive that there is a demo that shows all that.
The example can be found in Demos\Delphi\Editors\Editor 1\
OLE objects are inserted from the Clipboard (Edit | Paste As | OLE).
Search for "OLE" in the source code of this demo to find all code related to OLE objects.