필터 지우기
필터 지우기

how to restore deleted items from listbox

조회 수: 3 (최근 30일)
Elysi Cochin
Elysi Cochin 2013년 1월 31일
i did the coding in the following link to create a listbox and display names of images from a particular folder.... on selecting the name from the listbox that image gets displayed in the axes.....
now i added two buttons, one named "DELETE" and the other named "RESTORE".....
in the DELETE button when i select a particular item from listbox that name gets deleted from the listbox and the corresponding image gets deleted from the folder....
on click of the RESTORE button all the delete images should get displayed in a figure file and added back to the folder.....
please can u help me do this option.....
i tried, its working when only one image is deleted..... if i delete more than one item, only the last deleted item is getting restored..... can u help me sort it out.....

채택된 답변

Image Analyst
Image Analyst 2013년 1월 31일
Restore does nothing whatsoever to put anything in the listbox. You need to call some function like LoadListBox(handles) that you create which will use the filename pattern to create a cell array of strings and then use set() to send that cell array to your listbox control.
  댓글 수: 1
Elysi Cochin
Elysi Cochin 2013년 2월 1일
편집: Elysi Cochin 2013년 2월 1일
sir what about to delete more than one item and restore it into the folder..... can u please show me that line..... please do reply sir....

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2013년 2월 4일
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 2월 4일
Those questions are still open. Edit them or post more to them instead of opening a new Question.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile 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