drag and drop graphics?

 采纳的回答

Walter Roberson
Walter Roberson 2011-1-25

4 个投票

Mathworks has provided technical solution 1-4DNMFD which gives code for dragging and dropping on a single figure. It works by using the figure ButtonDownFcn, WindowButtonUpFcn, and WindowButtonMotionFcn . The Motion function is used to detect the CurrentPoint and move the object to there.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by