Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Drag and Drop (Read 1278 times)
maxnetpromo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Mar 5th, 2006
Drag and Drop
May 16th, 2006 at 7:54pm
Print Post  
is there an easy way to allow drag/drop support in Flowchart.NET.

I have 4 preset shapes. it would be cool to be able to just drag them where i wanted.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop
Reply #1 - May 17th, 2006 at 6:23am
Print Post  
Hi,

The Flowcharter example shows how to implement drag-and-drop to the flowchart canvas. Set AllowDrop = true and handle the DragOver and Drop events.

You will need convert from the mouse screen coordinates reported by the .NET drag-and-drop events to the flowchart logical ones, which looks like

PointF p = fc.ClientToDoc(fc.PointToClient(new Point(e.X, e.Y)))

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint