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

3 vues (au cours des 30 derniers jours)
Johannes
Johannes le 10 Fév 2018
Commenté : Stefan Wackerow le 16 Nov 2019
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 commentaire
Stefan Wackerow
Stefan Wackerow le 16 Nov 2019
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?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by