Borrar filtros
Borrar filtros

GUI

2 visualizaciones (últimos 30 días)
Murali Mohan
Murali Mohan el 8 de Jul. de 2011
Hi,
Can you pls guide me,how to make button action i mean, whne the mouse button is click it has to perform action1,when mouse button relases it has to perform action2.
Thanks in advance for your help.

Respuesta aceptada

Friedrich
Friedrich el 8 de Jul. de 2011
Hi,
I think you are looking for the WindowButtonDownFcn and WindowButtonUpFcn. You can find an example called window_motion_test.m in $MATLABROOT\help\techdoc\ref\examples.
  2 comentarios
Murali Mohan
Murali Mohan el 8 de Jul. de 2011
Thank Friedrich for your reply,
I have callback in gui like
function activex4_OnMouseDown(hObject, eventdata, handles)
action1
function activex4_OnMouseUp(hObject, eventdata, handles)
action2
when I pressed the button, its going correct.when i released the button its going to action2, againg going back to action1.
i want to stop going back.
guide me how can i do it.
Thanks.
Friedrich
Friedrich el 8 de Jul. de 2011
This shouldnt happen normally. When clicking on a button the callback from the button is raised and the WindowButtonDownFcn. maybe something goes wrong here?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by