how to restore deleted items from listbox

how to restore more than one deleted items from listbox.... i could restore only one deleted item... if i delete more than one item.. how to restore all of them... please do reply....

 채택된 답변

Walter Roberson
Walter Roberson 2012년 12월 26일

0 개 추천

Is the question about how to change the listbox? If so, then just set() its String property to hold the revised information. You would need to have saved the information somewhere in order to restore it.
Is the question really about how to restore deleted images? If so then I talked about that in your existing thread.

댓글 수: 4

Image Analyst
Image Analyst 2012년 12월 26일
Yeah, same here, like using recycle() instead of delete() so it will be possible to undelete files.
Elysi Cochin
Elysi Cochin 2012년 12월 27일
i have two buttons... on click of button1 i can delete any number of items from list box.... and on click of button2 i wanted to display all the delete items....
i did the working of button1... that is when i select an item from listbox and click button1 that item will get deleted from the listbox... now i want to display on click of button2 the deleted items.... but dont know how to display all the deleted items.... please could u help me.....
Image Analyst
Image Analyst 2012년 12월 27일
Use setappdata() to store a cell array of the deleted names. In button 1 callback, use getappdata to retrieve the existing cell array, then add the deleted name, then use setappdata to save the updated cell array. In button 2 callback, simply call getappdata and retrieve the list of deleted names. Then set it equal to the string property of some listbox where you want to display the deleted names, or set it to a static text label control if you want.
Elysi Cochin
Elysi Cochin 2012년 12월 28일
sir could u please show me an example....

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

추가 답변 (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