Drag and drop onto a predetermined grid.

1 view (last 30 days)
Tyler
Tyler on 21 Mar 2014
Commented: Tayler on 11 Apr 2014
My current project is to design a GUI that allows users to create a series piping system with pumps, valves, connectors, and other things. What I would like to do is have all the possible parts shown on the side and then have the user drag them onto a grid where they would snap into place. Is there something in MATLAB that would allow me to do this or would I have to track where the piece is and manually tell it what position to snap to?

Accepted Answer

Jan
Jan on 21 Mar 2014
I do not know a method, which does this automatically. But snapping is easy, because you only have to find the nearest matching location.
  1 Comment
Tayler
Tayler on 11 Apr 2014
How would one go about making the grid for the images to be dropped on?

Sign in to comment.

More Answers (0)

Categories

Find more on Fluid Dynamics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!