Hi! Is it possible for the inputdlg box to respond to the enter button instead of clicking at the ok button? BR Johan

 採用された回答

Oleg Komarov
Oleg Komarov 2011 年 6 月 27 日

1 投票

You can modify inputdlg so that the focus is automatically set on the enter button otherwise you have to push tab before enter.

5 件のコメント

Johan
Johan 2011 年 6 月 27 日
Thanks, how do I modify the focus?
Oleg Komarov
Oleg Komarov 2011 年 6 月 27 日
edit inputdlg ($Revision: 1.58.4.18 $)
after line 248 add:
'KeyPressFcn',@doControlKeyPress, ...
Johan
Johan 2011 年 6 月 27 日
Thank you:)
Johan
Johan 2011 年 6 月 27 日
Do you know if it's possible to use this functio when you've converted the m file to an exe file?
Oleg Komarov
Oleg Komarov 2011 年 6 月 27 日
Never converted into exe.

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

その他の回答 (1 件)

only VB
only VB 2014 年 3 月 21 日

0 投票

Hollo, could you tell me where define the function 'doControlKeyPress'?

カテゴリ

ヘルプ センター および File ExchangeApp Building についてさらに検索

製品

タグ

質問済み:

2011 年 6 月 27 日

回答済み:

2014 年 3 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by