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
Inserting External Object
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?
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?
-
- Site Admin
- Posts: 17526
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
For inserting flash movies, see http://www.trichview.com/forums/viewtopic.php?t=72