App Designer: control focus on pressing Tab

9 次查看(过去 30 天)
Can I somehow control in R2020a which form is going to be in focus when I press tab on keyboard?
Now it looks like:

采纳的回答

Cris LaPierre
Cris LaPierre 2021-5-7
编辑:Cris LaPierre 2021-5-7
Tab order appears to be linked to the order of your components in the component browser. See this answer for a way to change the order.

更多回答(1 个)

Adam Danz
Adam Danz 2022-4-5
Starting in MATLAB R2022a, AppDesigner contains a tool to assist with setting tab order there's also a new focus(c) function to programmatically set focus to a ui component c.
More info

类别

Help CenterFile Exchange 中查找有关 Desktop 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by