file ordered by the sequence mouse selecting
显示 更早的评论
there r several files ,for example,b.txt, c.txt , e.txt, a.txt;
i want to order them by the mouse selecting sequence.
first select c.txt, then a.txt, then e.txt, then b.txt then the order is c -> a->e-> b,
but i use uigetfile then they are not ordered by what i want.
are there any ways ?
3 个评论
Jan
2015-5-13
Where are these files? Where should the be ordered? On the hard disk? In a listbox, in a cell string containing the names? The question is not clear.
Guillaume
2015-5-13
Giving the order the user click on items in "File Open" dialog any kind of meaning is a very poor user experience. What if you realise near the end that you've forgotten one file? You have to start from scratch.
Letting the user drag and reorder the files into a listbox is a much better user interface and it's trivial to get the file order from the listbox content (it's simply the order they are in).
Roger
2015-5-14
回答(1 个)
Jan
2015-5-13
0 个投票
uigetfile does not reply the files in the order you select them. So you have to call uigetfile with selecting 1 file each time until the user hits cancel.
类别
在 帮助中心 和 File Exchange 中查找有关 App Building 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!