How can I know pressed mouse key on a GUI push button?

1 visualización (últimos 30 días)
MOHIT
MOHIT el 23 de Jun. de 2016
Comentada: MOHIT el 23 de Jun. de 2016
I have made a 'pushbutton' using GUI ('guide'). How can I know and display which mouse key (left, right or centre) I pressed over pushbutton?
  2 comentarios
Gabriel
Gabriel el 23 de Jun. de 2016
Why would you need to know which mouse button is pressed over a pushbutton? Do you need to get different behavior depending on the mouse button pressed? If so, can't you use a pushbutton list?
MOHIT
MOHIT el 23 de Jun. de 2016
No, actually I need this behaviour, else I will have to make 9 pushbuttons

Iniciar sesión para comentar.

Respuestas (1)

Steven Lord
Steven Lord el 23 de Jun. de 2016
See the figure's SelectionType property.
  1 comentario
MOHIT
MOHIT el 23 de Jun. de 2016
it is not a figure but a button on a figure created by 'guide'

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by