Why is eventData.HitObject / WindowMous​eData.HitO​bject not listed in properties?

조회 수: 3 (최근 30일)
Johannes
Johannes 2018년 2월 10일
댓글: Stefan Wackerow 2019년 11월 16일
Hey,
Somewhere on the web I found out, that I can use eventData.HitObject / WindowMouseData.HitObject to identify which object has been clicked. I use it a lot and love this feature. However, when you disp eventData it just displays the following:
WindowMouseData with properties:
Source: [1×1 Figure]
EventName: 'WindowMousePress'
Where is my .HitObject hidden? Is there something else inside eventData that I could use? How can I explore eventData without any documentation?
Thanks in advance!
  댓글 수: 1
Stefan Wackerow
Stefan Wackerow 2019년 11월 16일
It also has the property .IntersectionPoint, which gives the location within the control which was clicked at.
Very useful functions, but is it documented anywhere?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by