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

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?

回答 (2 件)

B.k Sumedha
B.k Sumedha 2015 年 6 月 25 日
編集済み: B.k Sumedha 2015 年 6 月 25 日

1 投票

There is a good example in mathworks documentation only.You can have a look at this .
Image Analyst
Image Analyst 2015 年 6 月 25 日

0 投票

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 件のコメント

joe
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

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeInteractive Control and Callbacks についてさらに検索

質問済み:

2015 年 6 月 25 日

コメント済み:

joe
2018 年 1 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by