フィルターのクリア

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

2 ビュー (過去 30 日間)
MOHIT
MOHIT 2016 年 6 月 23 日
コメント済み: MOHIT 2016 年 6 月 23 日
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.
  1 件のコメント
MOHIT
MOHIT 2016 年 6 月 23 日
it is not a figure but a button on a figure created by 'guide'

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

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by