Disable drag-and-drop an image

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

Disable drag-and-drop an image

Post by Ceprotec »

Hello, Sergey.

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

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

Re: Disable drag-and-drop an image

Post by Sergey Tkachenko »

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

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

Re: Disable drag-and-drop an image

Post by Ceprotec »

Is included, and allows drag and drop

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

Re: Disable drag-and-drop an image

Post by Sergey Tkachenko »

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: 231
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Re: Disable drag-and-drop an image

Post by Ceprotec »

It worked.
Thanks Sergey!

Post Reply