Why am I unable to tab to some UICONTROLs in my GUI in MATLAB?

5 visualizzazioni (ultimi 30 giorni)
Initially, I run my GUI and click on a UICONTROL to give it focus. When I press the Tab key, I expect the GUI to tab through the other UICONTROLs. However, I do not see the UICONTROLs receiving focus.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 27 Giu 2009
This has been verified as an issue in MATLAB when tabbing through the following styles of UICONTROLs:
pushbutton
togglebutton
radiobutton
checkbox
When the "String" property of these UICONTROLs is empty, the UICONTROL does not appear to have focus. However, note that the UICONTROL actually does have focus, and pressing the space bar will trigger its callback.
Currently, to work around this issue, you can give the UICONTROL a "String" property that is not empty. If you do not want anything to be displayed, you can use spaces.

Più risposte (0)

Categorie

Scopri di più su App Building in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by