Disable drag-and-drop an image

General TRichView support forum. Please post your questions here
Post Reply
Ceprotec
Posts: 226
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Disable drag-and-drop an image

Post by Ceprotec » Tue Jan 29, 2019 11:44 pm

Hello, Sergey.

How to disable drag-and-drop an image from the editor?

Sergey Tkachenko
Site Admin
Posts: 14558
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Disable drag-and-drop an image

Post by Sergey Tkachenko » Wed Jan 30, 2019 7:31 am

You can only disable drag&drop from TRichView completely.
Include rvoDisallowDrag in the Options property.

Ceprotec
Posts: 226
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Re: Disable drag-and-drop an image

Post by Ceprotec » Wed Jan 30, 2019 10:45 am

Is included, and allows drag and drop

Sergey Tkachenko
Site Admin
Posts: 14558
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Disable drag-and-drop an image

Post by Sergey Tkachenko » Wed Jan 30, 2019 5:47 pm

If included, drag&drop FROM this editor is not possible. But it does not prevent dragging INTO this editor.
To disable accepting all/some format from drag&drop, exclude values from AcceptDragFormats property.

Ceprotec
Posts: 226
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Re: Disable drag-and-drop an image

Post by Ceprotec » Thu Jan 31, 2019 12:03 pm

It worked.
Thanks Sergey!

Post Reply