App Designer: control focus on pressing Tab

조회 수: 13(최근 30일)
Anastasia Eltsova
Anastasia Eltsova 2021년 5월 7일
댓글: Cris LaPierre 2022년 4월 5일
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





Community Treasure Hunt

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

Start Hunting!

Translated by