Inserting External Object

General TRichView support forum. Please post your questions here
Post Reply
carloscastro
Posts: 13
Joined: Fri Feb 24, 2006 5:48 pm

Inserting External Object

Post 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
shmp
Posts: 140
Joined: Sun Aug 28, 2005 10:19 am
Location: Sabah, Malaysia.
Contact:

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Post Reply