"Enter" key function to assign variable in GUI
Mostrar comentarios más antiguos
I have a problem in adding enter key to my GUI, while taking variable from the user. How can i write a function for enter key?
3 comentarios
Kevin Chng
el 19 de Oct. de 2018
Enter key?
Do you need a callback button for it?
Emre Can Ertekin
el 19 de Oct. de 2018
Kevin Chng
el 19 de Oct. de 2018
App designer?
Respuestas (1)
Walter Roberson
el 19 de Oct. de 2018
0 votos
Use the Callback property of the uicontrol. It will be run when the user presses return after selecting the control, or if the user makes a change to the content of the edit field and then clicks somewhere outside the control.
Categorías
Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!