difference between buttondownfcn and keypressfcn

I know that using the keypressfcn as a property in a figure works, but where do I set the buttondownfcn in case I have a couple of buttons?
I can't set it in the main figure becuase it won't be able to recognize which one.
so how should it be done?

 採用された回答

Matt Fig
Matt Fig 2012 年 10 月 10 日
編集済み: Matt Fig 2012 年 10 月 10 日

0 投票

Buttondownfcn is for the mouse button.
docsearch('uicontrol properties')

その他の回答 (0 件)

カテゴリ

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

質問済み:

2012 年 10 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by