How can I make some action on listbox by double clicking?

23 visualizaciones (últimos 30 días)
Giorgi
Giorgi el 25 de Jun. de 2015
Comentada: joe el 11 de En. de 2018
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?

Respuestas (2)

B.k Sumedha
B.k Sumedha el 25 de Jun. de 2015
Editada: B.k Sumedha el 25 de Jun. de 2015
There is a good example in mathworks documentation only.You can have a look at this .

Image Analyst
Image Analyst el 25 de Jun. de 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 comentarios
joe
joe el 11 de En. de 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

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by