Why is eventData.HitObject / WindowMouseData.HitObject not listed in properties?
3 次查看(过去 30 天)
显示 更早的评论
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
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 Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!