change focus in app desinger

5 次查看(过去 30 天)
JIAYING WU
JIAYING WU 2019-9-19
评论: Adam Danz 2022-5-2
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 个评论
works math
works math 2022-5-2
Is there any new progress on this issue ? Date:2022.5.2
Adam Danz
Adam Danz 2022-5-2
@works math, yes! Just added an answer to update this thread.

请先登录,再进行评论。

回答(1 个)

Adam Danz
Adam Danz 2022-5-2
> 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.

类别

Help CenterFile Exchange 中查找有关 Maintain or Transition figure-Based Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by