Borrar filtros
Borrar filtros

mouse callbacks on uiaxes

3 visualizaciones (últimos 30 días)
Luke Somers
Luke Somers el 28 de Jun. de 2018
Comentada: Sampath Rachumallu el 26 de Jun. de 2020
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 comentario
Sampath Rachumallu
Sampath Rachumallu el 26 de Jun. de 2020
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by