App Designer: control focus on pressing Tab

11 views (last 30 days)
Can I somehow control in R2020a which form is going to be in focus when I press tab on keyboard?
Now it looks like:

Accepted Answer

Cris LaPierre
Cris LaPierre on 7 May 2021
Edited: Cris LaPierre on 7 May 2021
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.

More Answers (1)

Adam Danz
Adam Danz on 5 Apr 2022
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

Categories

Find more on Desktop in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!