difference between buttondownfcn and keypressfcn

6 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by