Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to implement drag & drop operation? (Read 1371 times)
nikulin_andrey
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 26
Joined: Dec 1st, 2006
How to implement drag & drop operation?
Jan 3rd, 2007 at 1:00pm
Print Post  
Hi All,

Could somebody help me with this?

How to implement drag & drop of box between two flowcharts?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to implement drag & drop operation?
Reply #1 - Jan 3rd, 2007 at 1:39pm
Print Post  
Hi,

We have added a CancelDrag() method to the 4.2.3 version we are currently preparing for release. You can call this from the BoxModifying event, when the box is outside the currently visible area, to cancel the users action, and than call DoDragDrop to start the drag-and-drop operation. I can send you a prerelease 4.2.3 build if you are interested in trying this out.

Otherwise, you can handle the MouseDown event, and there check if any box is under the mouse cursor. If so, set Behavior = DoNothing so that the control does not start modifying the box, and call DoDragDrop. That will prevent users from selecting and moving boxes, so you might have to implement two modes in your application - one that let users modify the diagram, and one that lets them do drag-and-drop between two diagram.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint