How can I make some action on listbox by double clicking?
22 views (last 30 days)
Show older comments
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 Comments
Answers (2)
B.k Sumedha
on 25 Jun 2015
Edited: B.k Sumedha
on 25 Jun 2015
There is a good example in mathworks documentation only.You can have a look at this .
0 Comments
Image Analyst
on 25 Jun 2015
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 Comments
Walter Roberson
on 25 Jun 2015
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
on 11 Jan 2018
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
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!