필터 지우기
필터 지우기

mouse callbacks on uiaxes

조회 수: 3 (최근 30일)
Luke Somers
Luke Somers 2018년 6월 28일
댓글: Sampath Rachumallu 2020년 6월 26일
I am making an application that needs to react to clicking on images. uiaxes objects do not offer mouse callbacks. And when I tried to set a ButtonDownFcn on one, this was confirmed 'Functionality not supported with figures created with the uifigure function'.
I assume that there is SOME way to get an App Designer application to react to clicking on images. What is it? Or can I only use GUIDE?
  댓글 수: 1
Sampath Rachumallu
Sampath Rachumallu 2020년 6월 26일
Hi one workaround is to use both 'CurrentPoint' property of uiaxes and 'WindowButtonUpFcn' of uifigure in tandem. On right click of mouse get the the current mouse location using 'CurrentPoint' and see if the click is within the range of uiaxes.
You can execute the appropriate callback based on that.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by