Doesn't ButtonDownFcn work for left-click?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Daniele Morello
el 21 de Sept. de 2015
Editada: Daniele Morello
el 22 de Sept. de 2015
hi everyone, i would to know if it's possible to have the same behavior for the ButtonDownFcn for the left-click instead of right-click. i have to set invisible an editText when i click on another editText. Now it works only with right click. i've simply used this line code:
set(handles.editGIRI_r,'Visible','Off');
1 comentario
Walter Roberson
el 21 de Sept. de 2015
Do you have zoom or pan turned on? Those interfere with clicking.
Respuesta aceptada
Steven Lord
el 21 de Sept. de 2015
Look at the documentation for a uicontrol's ButtonDownFcn, Callback, and Enable properties. The ButtonDownFcn for a uicontrol will execute on left-click if the uicontrol is not enabled (off or inactive.) If the uicontrol is enabled, its Callback executes instead.
1 comentario
Más respuestas (0)
Ver también
Categorías
Más información sobre Entering Commands 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!