change focus in app desinger

5 vues (au cours des 30 derniers jours)
JIAYING WU
JIAYING WU le 19 Sep 2019
Commenté : Adam Danz le 2 Mai 2022
I have a edit box that requires user input values.
Is there a way to put the cursor in the editbox without click the box? Instead I want the user to be able to press enter key to activate the editbox and input their value.
  11 commentaires
works math
works math le 2 Mai 2022
Is there any new progress on this issue ? Date:2022.5.2
Adam Danz
Adam Danz le 2 Mai 2022
@works math, yes! Just added an answer to update this thread.

Connectez-vous pour commenter.

Réponses (1)

Adam Danz
Adam Danz le 2 Mai 2022
> Is there a way to put the cursor in the editbox without click the box
Yes, as of MATLAB R2022a.
See the focus function which is also reviewed in this Community Highlight.
Also see a review of the new ways to control tab order in this Community Highlight.

Catégories

En savoir plus sur Maintain or Transition figure-Based Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by