"Enter" key function to assign variable in GUI
显示 更早的评论
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 个评论
Kevin Chng
2018-10-19
Enter key?
Do you need a callback button for it?
Emre Can Ertekin
2018-10-19
Kevin Chng
2018-10-19
App designer?
回答(1 个)
Walter Roberson
2018-10-19
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!