Link to home
Start Free TrialLog in
Avatar of WilliamHarter
WilliamHarter

asked on

OLE in Delphi without using the clipboard

In my last question asked here I ask how to put pictures in a Richedit control. I found the solution in the form of a zip
file MyRicheditEx I don't remember exactly where.  The solution worked.  However the sample code give uses the clipboard to insert picture.  The following code insets the picture. I would like to know how to do this with using the clipboard.


procedure insertbmp(MyRich: TRichedit; bmpname: string);
 var
   pict: Tpicture;
begin

   Pict := TPicture.Create;
   Pict.LoadFromFile(bmpname);
   Clipboard.Assign(Pict);
   MyRich.PasteFromClipboard;
end;

I found some code on this board to back up and restore the clipboard but I would perfer not to use the cliboard at all.
ASKER CERTIFIED SOLUTION
Avatar of Wim ten Brink
Wim ten Brink
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Delphian
Delphian

And the best (and expensive)  richtext controls are just the ones
that reimplement the RTF standard from scratch.
But I got that standard one time: it's about 31 A4
pages on pdf.... And font Arial 10pt.... I just deleted
and forgot the subject.


Give the points to Alex.... I did just a complimentary comment.