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:
DnD_uifigure(uilistbox(uifigure), @(o,dat)set(o,'Items',dat.names))
Cita come
Xiangrui Li (2025). uiFileDnD (https://github.com/xiangruili/uiFileDnD), GitHub. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2020b
Compatibile con R2020b e release successive
Compatibilità della piattaforma
Windows macOS LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Le versioni che utilizzano il ramo predefinito di GitHub non possono essere scaricate
Versione | Pubblicato | Note della release | |
---|---|---|---|
2023.10.18 | Try to fix the crash issue |
|
|
2023.10.17 | See release notes for this release on GitHub: https://github.com/xiangruili/uiFileDnD/releases/tag/v2023.10.17
|
||
2023.04.14 | Move JS from help text to string, so it works for compiled app. Thx MattTheCuber |
|
|
2020.10.04 | add picture |
|
|
2020.10.03 |
|
Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.
Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.