I was tniking of intercepting Paste and drag/drop through a sink event?<br><br>
<div><span class="gmail_quote">On 23/05/06, <b class="gmail_sendername">Stefan Mueller</b> &lt;<a href="mailto:muellers@orcl-toolbox.com">muellers@orcl-toolbox.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div lang="EN-US" vlink="blue" link="blue">
<div>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">If I would be you then I wouldn't try to handle it during the editing process. Your own "Insert Picture" dialog might be easy to do, but a copy/paste of html would still require you to parse html syntax … so you might as well do that at the end of the editing in your "save" button by parsing the html for new and deleted files.
</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;</span></font></p>
<div>
<p style="MARGIN-BOTTOM: 12pt"><font face="Arial" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Kind Regards<span>,</span><br>Stefan Mueller </span></font><font face="Arial" color="#666699" size="2">
<span style="FONT-SIZE: 10pt; COLOR: #666699; FONT-FAMILY: Arial"><br><br></span></font></p></div>
<div>
<div style="TEXT-ALIGN: center" align="center"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">
<hr align="center" width="100%" size="3">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:delphi-bounces@ns3.123.co.nz" target="_blank">
delphi-bounces@ns3.123.co.nz</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:delphi-bounces@ns3.123.co.nz" target="_blank">delphi-bounces@ns3.123.co.nz</a>] <b><span style="FONT-WEIGHT: bold">
On Behalf Of </span></b>Paul A Norman<br><b><span style="FONT-WEIGHT: bold">Sent:</span></b> Tuesday, 23 May 2006 6:31 p.m.</span></font></p></div>
<div><span class="e" id="q_10b609fbd30aca0c_1"><br><b><span style="FONT-WEIGHT: bold">To:</span></b> NZ Borland Developers Group - Delphi List<br><b><span style="FONT-WEIGHT: bold">Subject:</span></b> Re: [DUG] The Programmer's Grail? Streaming Twebbrowserordescendantto DB Blob and back
</span></div>
<div>
<p></p></div></div>
<div><span class="e" id="q_10b609fbd30aca0c_3">
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Its pretty good all rright.</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Especially from the perspective of re-editing the streamed 'files'</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Just have to handle introduction of&nbsp;new images in a custom insertion routine, and editing of existing images.<br>&nbsp;</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">I looked at an earlier example of the same unit,&nbsp;from the old Euromind.Delphi site (now just closed) which was still focussed on the&nbsp;MHT approach.</span>
</font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Still would like to know if those interface can give me&nbsp;the design layer of TwebBrowser for streaming! Would be even better!</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">This will certainly do the job.</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Paul<br>&nbsp;</span></font></p></div>
<div>
<p><span><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">On 23/05/06, <b><span style="FONT-WEIGHT: bold">Stefan Mueller</span></b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:muellers@orcl-toolbox.com" target="_blank">
muellers@orcl-toolbox.com</a>&gt; wrote:</span></font></span> </p>
<div>
<div vlink="blue" link="blue">
<div>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Yes .. the demo source (link at the end of the article) should be pretty much self explaining .. it streams html &amp; pictures directly from blob fields in a paradox table when internet explorer requires them (using IStream interfaces, not files) – what else do you need?! 
</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;</span></font></p>
<div>
<p style="MARGIN-BOTTOM: 12pt"><font face="Arial" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Kind Regards,<br>Stefan Mueller </span></font></p></div>
<div>
<div style="TEXT-ALIGN: center" align="center"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">
<hr align="center" width="100%" size="3">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:delphi-bounces@ns3.123.co.nz" target="_blank">
delphi-bounces@ns3.123.co.nz</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:delphi-bounces@ns3.123.co.nz" target="_blank">delphi-bounces@ns3.123.co.nz</a>] <b><span style="FONT-WEIGHT: bold">
On Behalf Of </span></b>Paul A Norman<br><b><span style="FONT-WEIGHT: bold">Sent:</span></b> Tuesday, 23 May 2006 5:44 p.m.</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"><br><span><b><span style="FONT-WEIGHT: bold">To:</span></b> NZ Borland Developers Group - Delphi List</span></span></font></p></div>
<div>
<p><span><b><font face="Times New Roman" size="3"><span style="FONT-WEIGHT: bold; FONT-SIZE: 12pt">Subject:</span></font></b> Re: [DUG] The Programmer's Grail? Streaming Twebbrowser ordescendantto DB Blob and back</span>
</p></div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p>
<div><span>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Exploring the line that you have ginve me Stefan, I would then keep a seperate table of images and handle calls for them in the Name space handler? </span>
</font></p></span></div></div>
<div><span>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Paul<br><br>&nbsp;</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">On 23/05/06, <b><span style="FONT-WEIGHT: bold">Stefan Mueller</span></b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:muellers@orcl-toolbox.com" target="_blank">
 muellers@orcl-toolbox.com</a>&gt; wrote: </span></font></p>
<div>
<div vlink="purple" link="blue">
<div>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Here is a link to a namespace documentation and example sourcecode that I used in one of my products:</span></font>
 </p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.bsalsa.com/name_space.html" target="_blank">
http://www.bsalsa.com/name_space.html</a></span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">… as for reading images out .. the easiest is actually to scan the html file for image-tags (don't forget css-links, table backgrounds, etc). You will need to do this anyway and replace those linktags with your own namespace handler url. 
</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;</span></font></p>
<div>
<p style="MARGIN-BOTTOM: 12pt"><font face="Arial" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Kind Regards,<br>Stefan Mueller </span></font></p></div>
<div>
<div style="TEXT-ALIGN: center" align="center"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">
<hr align="center" width="100%" size="3">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:delphi-bounces@ns3.123.co.nz" target="_blank">
delphi-bounces@ns3.123.co.nz</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:delphi-bounces@ns3.123.co.nz" target="_blank">delphi-bounces@ns3.123.co.nz</a>] <b><span style="FONT-WEIGHT: bold">
On Behalf Of </span></b>Paul A Norman<br><b><span style="FONT-WEIGHT: bold">Sent:</span></b> Tuesday, 23 May 2006 2:46 p.m.<br><b><span style="FONT-WEIGHT: bold">To:</span></b> NZ Borland Developers Group - Delphi List<br>
<b><span style="FONT-WEIGHT: bold">Subject:</span></b> [DUG] The Programmer's Grail? Streaming Twebbrowser or descendantto DB Blob and back</span></font></p></div></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">I am reposting this here, as there are people with expertese who might not see it in the other placs I have put it. </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">And I suspect it opens up an area of great usefuleness beyond Twebbrowser.<br><br>I have been looking (as many seem to!) into streaming the content of 
<br>Twebbrowser or TembeddedWB into a data base Blob field, seems to be the <br>grail of this kind of programming!<br><br>And generally I want to be able to live re-edit the returned material<br>in a Twebbrowser window.<br>
<br>Wanting to retain images etc, I have looked at MHT and it seems that it <br>is possible to use a NameSpace set up to stream them back to the<br><br>browser window once in the DB, but I can find no other way than<br>initally saving to disk to get an MHT out of a browser back to the DB 
<br>blob field. I want to avoid using the disk because of the overheads. <br><br>So I want to know how I might get a binary representation of the<br>actual rendering of the HTML in Twebbrowser into a stream and into a<br>
blob and back when wanted. NOT as MHT or HTML! As already rendered<br>content this stream would be very fast to re-process back into a <br>Twebbrowser.<br><br>It just seems that there must be something like a TCanvas in the 
<br>Twebbrowser. But a pure TCanvas may not render the 'data' back into the<br>browser as edit able material.<br><br>** Is there something in how Twebbrowser renders the HTML, a 'binary <br>layer' that can be streamed back and forward? 
<br><br>** Something that has all the rendered elements and &lt;object&gt; &lt;img&gt; &lt;etc<br>..&gt; as binary available for streaming?<br>Is component streaming an sensible avenue? <br><br><br><br>i.e. TStream.WriteComponent
 <br><br>Paul<br><br>&nbsp;</span></font></p></div></div></div></div>
<p style="MARGIN-BOTTOM: 12pt"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"><br>_______________________________________________<br>Delphi mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Delphi@ns3.123.co.nz" target="_blank">
Delphi@ns3.123.co.nz</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://ns3.123.co.nz/mailman/listinfo/delphi" target="_blank">http://ns3.123.co.nz/mailman/listinfo/delphi</a></span></font></p></div>

<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p></span></div></div></div>
<p style="MARGIN-BOTTOM: 12pt"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"><br>_______________________________________________<br>Delphi mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Delphi@ns3.123.co.nz" target="_blank">
Delphi@ns3.123.co.nz</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://ns3.123.co.nz/mailman/listinfo/delphi" target="_blank">http://ns3.123.co.nz/mailman/listinfo/delphi</a><br><br></span></font>
</p></div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p></span></div>
<div></div></div></div><br>_______________________________________________<br>Delphi mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://ns3.123.co.nz/mailman/listinfo/delphi" target="_blank">http://ns3.123.co.nz/mailman/listinfo/delphi</a><br><br><br></blockquote></div><br>