Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Drag Drop Problems (Read 4509 times)
DoctorsDad
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: May 19th, 2011
Drag Drop Problems
May 19th, 2011 at 6:15pm
Print Post  
Hi,

I'm evaluating WinForms Calendar control in Resource View. I've copied the essence of the DragDrop sample ( I'm using VB2005) and I have two issues.

Although the DragOver event decodes the target cell correctly, and sets e.Effect = DragDropEffects.Copy, the cursor never changes.

Also, when the mouse button is released, the DragDrop event never fires.

I haven't currently implemented my own _Draw handler but other than that I can't see how my code differs from the sample.

Any ideas where I should look?

Regards,

DoctorsDad
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag Drop Problems
Reply #1 - May 19th, 2011 at 6:35pm
Print Post  
Hi,

Are you absolutely sure Effect is not set to None when the DragOver handler returns? If you email your test project to support@mindfusion.eu, our developer will check what might be stopping the Drop event.

Regards,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag Drop Problems
Reply #2 - May 20th, 2011 at 5:20am
Print Post  
The problem is that the source sets Move as the only allowed drop effect, but the target calendar's DragOver handler sets Effect to Copy:

ListView1.DoDragDrop(currentJob, DragDropEffects.Move)
...
e.Effect = DragDropEffects.Copy

You will have to either set Effect to Move, or add Copy to the allowedEffects argument.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
DoctorsDad
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: May 19th, 2011
Re: Drag Drop Problems
Reply #3 - May 20th, 2011 at 7:16am
Print Post  
Marvellous!

It's amazing how you can't see your own mistakes even when they are staring you in the face!

Many thanks.
DoctorsDad
  
Back to top
 
IP Logged
 
tharu
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Sep 13th, 2011
Re: Drag Drop Problems
Reply #4 - Sep 13th, 2011 at 5:06am
Print Post  
Hi

the result of the "e.item .endTime"(modified event) differ from result from "Calendar.Schedule.Items(strSelectedId).endTime" om dragDrop event.how i find same results form 2 events.

Thank you
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Drag Drop Problems
Reply #5 - Sep 13th, 2011 at 6:01am
Print Post  
I cannot understand your case. Can you send me a small sample illustrating it to meppy@mindfusion.eu?

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint