How can I make some action on listbox by double clicking?
조회 수: 21 (최근 30일)
이전 댓글 표시
Hello all, I have two listbox. First listbox contains some strings, I want that by double click on these strings individualy, make them move to the second listbox. Any idea?
댓글 수: 0
답변 (2개)
B.k Sumedha
2015년 6월 25일
편집: B.k Sumedha
2015년 6월 25일
There is a good example in mathworks documentation only.You can have a look at this .
댓글 수: 0
Image Analyst
2015년 6월 25일
Sorry, there is no double-click event exposed in MATLAB, only an event that fires off on a single click (which will also fire off at a double-click event as well).
댓글 수: 2
Walter Roberson
2015년 6월 25일
You can check SelectionType though; see http://www.mathworks.com/matlabcentral/answers/96424-how-can-i-execute-a-double-click-callback-without-executing-the-single-click-callback-in-my-matlab-g
joe
2018년 1월 11일
Double-Clik on Listbox is possible. to make the double-click works you only Need to write the code below in listbox callbox
function listbox_Callback(hObject, eventdata, handles)
if strcmp(get(gcf,'selectiontype'),'open')
% here you write write code, which you wanna be executed afer double-click
end
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!