How can I know pressed mouse key on a GUI push button?

1 次查看(过去 30 天)
I have made a 'pushbutton' using GUI ('guide'). How can I know and display which mouse key (left, right or centre) I pressed over pushbutton?
  2 个评论
Gabriel
Gabriel 2016-6-23
Why would you need to know which mouse button is pressed over a pushbutton? Do you need to get different behavior depending on the mouse button pressed? If so, can't you use a pushbutton list?
MOHIT
MOHIT 2016-6-23
No, actually I need this behaviour, else I will have to make 9 pushbuttons

请先登录,再进行评论。

回答(1 个)

Steven Lord
Steven Lord 2016-6-23
See the figure's SelectionType property.

类别

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