"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
Kevin Chng 2018 年 10 月 19 日
Enter key?
Do you need a callback button for it?
Emre Can Ertekin
Emre Can Ertekin 2018 年 10 月 19 日
For example in my gui i have a amplitude of the signal in edittext box, i want the when user enter the value of amplitude end press 'Enter button in keyboard' gui should assign the valur and change the axes.
Kevin Chng
Kevin Chng 2018 年 10 月 19 日
App designer?

サインインしてコメントする。

回答 (1 件)

Walter Roberson
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 ExchangeInteractive Control and Callbacks についてさらに検索

質問済み:

2018 年 10 月 19 日

コメント済み:

2018 年 10 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by