Page 1 of 1

Inserting External Object

Posted: Mon Apr 30, 2007 6:40 pm
by carloscastro
Hi,

Is there a way to insert an external object in an editor?.
For example the code below to insert an youtube flash video in a document:

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/hYRABde3jB4"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/hYRABde3jB4" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

Or the same situation but for an external image, inserting only the url of the image..

Thanks for your help,

Carlos Castro

Posted: Mon Apr 30, 2007 11:07 pm
by shmp
Do you mean inserting object into TRichView from remote place? If so, yes it is possible. Since it is quite a complex procedure, I will give you very important hints only. If you are using Delphi, you need the Indy http vcl.

1. Create the object class.
2. Download the object using Indy http directly into the memory.
2. Use the created class to read the information from the memory.
2. Insert the class into TRichView..
3. Remove the memory but NOT the class that you have created.

If the object is an image, the the class would be TGraphic, isn't it?

Posted: Tue May 01, 2007 8:41 am
by Sergey Tkachenko