필터 지우기
필터 지우기

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 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