Page 1 of 1

Can't drag picture into richview from some application

Posted: Sat Nov 05, 2011 6:10 pm
by greatsea
Dear sir,I test the demo and find one problem:
Can not drag picture from some applictation,also not past the picture into richViewEdit.
The Drag info is below:

ID Name Aspect Medium Size
13 CF_UNICODETEXT Content GlobalMem 2
15 CF_HDROP Content GlobalMem 204
49364 HTML Format Content GlobalMem 801
49621 QQ_Unicode_RichEdit_Format Content GlobalMem 519
49623 QQ_RichEdit_Format Content GlobalMem 519
8 CF_DIB Content GlobalMem 63,772

Posted: Mon Nov 07, 2011 2:06 pm
by Sergey Tkachenko
From these format, TRichViewEdit understands:
- CF_UNICODETEXT
- CF_DIB
- CF_HDROP (if it contains graphic files or rvf/rtf/txt).

I listed formats in the order of their priority. As you can see, CF_UNICODETEXT has the higher priority, so a plain text will be inserted (if it is not excluded from AcceptDragDropFormats property).

What application is a source? I do not know these QQ_ formats. And I cannot see the standard "Rich Text Format".

Posted: Mon Nov 07, 2011 5:53 pm
by greatsea
Thanks for your reply.The application is QQ,a chat tools online,and about some hundred million people is using it now.The web address is:http://www.imqq.com/
The picture in the qq can drag drop to other appliction normally.

Posted: Tue Nov 08, 2011 6:53 pm
by Sergey Tkachenko
These applications may accept HTML format, or give CF_DIB or CF_HDROP higher priority than CF_UNICODETEXT.

Posted: Wed Nov 09, 2011 2:08 am
by greatsea
Thanks very much.
The QQ application is source,and the richviewEdit is target,then failed.
Is the the reason : The soure is a picture in fact, but the first format of source is Unicode,not HTML format, or give CF_DIB or CF_HDROP?