change focus in app desinger

8 views (last 30 days)
JIAYING WU
JIAYING WU on 19 Sep 2019
Commented: Adam Danz on 2 May 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 Comments
Adam Danz
Adam Danz on 2 May 2022
@works math, yes! Just added an answer to update this thread.

Sign in to comment.

Answers (1)

Adam Danz
Adam Danz on 2 May 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.

Community Treasure Hunt

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

Start Hunting!

Translated by