Inputdlg respond to enter?

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 个评论

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

请先登录,再进行评论。

更多回答(1 个)

only VB
only VB 2014-3-21

0 个投票

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

类别

帮助中心File Exchange 中查找有关 App Building 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by