Drag and drop over rectangle area

Discussions about document viewing.
Post Reply
mdelbene
Posts: 31
Joined: Wed May 11, 2011 10:03 am

Drag and drop over rectangle area

Post by mdelbene » Fri Jul 29, 2011 5:16 pm

Hi all,
I'm using GdPicture v.8.1 and I'm trying to enable drag and drop in a GdViewer only on a rectangle area (previously drawn).

Handling the GdViewer.MouseMove event I'm able to know if the mouse pointer is over the rectangle area, but I can't set the DragDropEffects.
So, the DragEnter and DragOver events occur only one time and they does not allow me to know the current mouse position, so I can't set the DragDropEffects.

Is it possible to allow drag and drop ONLY over rectangle area?
Anyone can help me?

Michela

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Drag and drop over rectangle area

Post by Loïc » Tue Aug 02, 2011 2:12 am

Hi Michela,

Unfortunately I don't understand what you are trying to do.

Kind regards,

Loïc

mdelbene
Posts: 31
Joined: Wed May 11, 2011 10:03 am

Re: Drag and drop over rectangle area

Post by mdelbene » Tue Aug 02, 2011 9:36 am

Hi Loïc,

sorry for my bad english, I try to explain better my question.
It would be easier show you a "video"! :wink:

Let's try again!

I set the property AllowDrop = true in my GdViewer control.
The effect I get is that all area of this control allows DragAndDrop operation.
I would like that this effect was only when the mouse pointer is over the rectangle area (obtained with GdViewer.GetRectCoordinatesOnDocument).

Thanks for your support.
Have a nice day!
Michela

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Drag and drop over rectangle area

Post by Loïc » Wed Aug 03, 2011 12:04 am

Hi Michela,

unfortunately this is not possible. You have to try to find a workaround by code.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest