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 Exchange에서 App 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