trichview.com

trichview.support.thirdparty




Re: Drag/drop from web browser component


Return to index


Author

Message

Stephen

Posted: 06/24/2004 20:11:50


Sergey,

  hopefully you can reproduce the problem with the small sample program that I

am sending with this article.


You should ensure that the {$DEFINE USERVHTML} and {$DEFINE USEINDY} are

uncommented in the RichViewActions.inc file and

that you have the Stop on Delphi Exceptions checked in Delphi IDE' Tools-

>Debugger Options so that the exception I am referring to will be made visible.


Once you have this program built, run it. then using a web browser, visit a

page which has some formatted HTML Text and one or more images on it. Try

http://www.lycos.com for example. Select some text and one or more images and

copy to clipboard. Then click the Paste Special button on the form and select

HTML and you should see the exception. Look carefully at the file path in the

error message.


Try drag and drop too.


Sometimes drag/drop or cut/paste does manage to bring over an image, maybe it

depends on whether it is a bmp, gif or jpeg I don't know.


Thanks for your help with this.


- Stephen

Sergey Tkachenko [[email protected]] wrote:

> Hello,

>

> Are you sure that the file path consists of two incorrectly joined paths

> (application path (probably it's a source html path too) and http location)

> when you do drag&drop, not paste as RTF?

>

> How can I reproduce it?

>

> > Has anybody any suggestions as to how I get drag from a web browser to a

> > TRichViewEdit to work, when the dragged item contains an image?

>

>



begin 666 HTMLPaste.zip

M4$L#!!0````(`-R&V#!D0]Q6G0```.<````-````2%1-3%!A<W1E+F1P<F6.

MRPK",!!%]X'\0Q9"54J@:U?%!PH5I-0/B.U0AC9IR*0@EOZ[)H@B[N;<N1RN

M=4/KE!;'ZEQ<%'G8<,;92$"<":%5L[_78'WZI@)-MT/*2<?D,#A-\;I^!`*-

M2+XHK:)$3*&9S5$^+4JQE@YH#G2#%DTPY-;V6"N/@Y$G@QY5CX\PY_>U=:`\

M!-VRBM(TKLA6?\UR-*\,3",Y>P)02P,$%`````@`$X_8,`<$D1^T`0``M@,`

M``X```!52%1-3%!A<W1E+G!A<XU2P6[;,`R]&_`_Z+!#,P0&>DW10Y=M;8$6

M"YS4/<LRDVB0)4.B701#_[VD+"=H6A0[^?'QD7XDU5N-XNEN\_BPD@'A*L_R

M3%L$OY4*..@#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F:!;`A\Y#FP3WBKT&<%)!W(/$Z&[5DNQO-(D

M!7SWPQ'?S-[_HR&=Y^Q>[:[$A;7+.*HQ54RPT$F<6-J>7J[BVVU<4:'6!$=N

ML//)<&!++YVVGH7K$<>ZR2YZ,V9_P>Y\-A,C-(<V!_17F&H@'"`Z7\LIE?F,

MS@D.%]Z[*_]]NOJU1CF_;#JI+I>3?L1A(W?=89S#-.H6=K++\$/[email protected]^IT

ME.VQGB^VV67V+5;3Z+YEPEZV2JKAVB&O__P'4$L!`A0+%`````@`W(;8,&1#

MW%:=````YP````T``````````0`@`````````$A434Q087-T92YD<')02P$"

M%`L4````"``3C]@P!P21'[0!``"V`P``#@`````````!`"````#(````54A4

M34Q087-T92YP87-02P$"%`L4````"`"\B=@P@)RC:`,%```$,0``#@``````

M```!`"````"H`@``54A434Q087-T92YD9FU02P4&``````,``P"S````UP<`

#````

`

end





Powered by ABC Amber Outlook Express Converter