How to disable Drag & Drop?

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

How to disable Drag & Drop?

Post by Dorwol »

Hello,

I use your control as viewer and allow the user to change some things like inserting notes...

...this will work great!

BUT how can I disable your OLE Drag & Drop Feature? Because with this feature the user can change the complete PDF and overwrite the original in my database!

Or (perfect solution!) is it possible to detect, if the user will Drop a file to the viewer - so I can call "Cancel = True", if I don't want to allow this document to drop!?

In your helpfilfe I can't find anything about Drag & Drop...
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: How to disable Drag & Drop?

Post by Vasyl - PDF-XChange »

You can use new property (default value is 0):
"General.DenyOpenDocumentsWhenDrop"
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: How to disable Drag & Drop?

Post by Dorwol »

Thank you, but is there any way to detect only a "DragOver"-Event?

I need this Event to process my own Drag&Drop-functionality.

Or can I get the Handle (hwnd) of the ViewerControl - if this is possible, I can catch the DragDrop event by my own SubClass(!).

I'm very very thankful for any hint...
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: How to disable Drag & Drop?

Post by Corwin - Tracker Sup »

Thank you, but is there any way to detect only a "DragOver"-Event?
Sorry, but for now, there is no way to do this.

This feature will be available in a forthcoming build.