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

 Respuesta aceptada

Oleg Komarov
Oleg Komarov el 27 de Jun. de 2011

1 voto

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

5 comentarios

Johan
Johan el 27 de Jun. de 2011
Thanks, how do I modify the focus?
Oleg Komarov
Oleg Komarov el 27 de Jun. de 2011
edit inputdlg ($Revision: 1.58.4.18 $)
after line 248 add:
'KeyPressFcn',@doControlKeyPress, ...
Johan
Johan el 27 de Jun. de 2011
Thank you:)
Johan
Johan el 27 de Jun. de 2011
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 el 27 de Jun. de 2011
Never converted into exe.

Iniciar sesión para comentar.

Más respuestas (1)

only VB
only VB el 21 de Mzo. de 2014

0 votos

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

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 27 de Jun. de 2011

Respondida:

el 21 de Mzo. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by