This single file implementation can set up a callback fired when files and/or folders are dropped onto a uifigure component.
In the callback, the full file and/or folder names are captured for user to decide the action. Ctrl and Shift key status during the drop event are also reported.
Example to drop file/folder into uilistbox:
Xiangrui Li (2021). uiFileDnD (https://github.com/xiangruili/uiFileDnD), GitHub. Retrieved .
Very neat utility!! Excellent.
Hi Lei Wang,
When did you experience the crash, when you call DnD_uifigure, drag into uifigure/component, or drop onto a component?
Nice: works with Appdesigner at Maltlab 2021a
Issue: This seem to cause Matlab randomly crash to exit without any messages. Maybe need a proper way to remove residuals after app exist and the function lifetime?
This seem to cause Matab to random crash to exit without any notice
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!