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일
Buttondownfcn is for the mouse button.
docsearch('uicontrol properties')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive 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