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

5 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 27 de Jun. de 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.

Más respuestas (0)

Categorías

Más información sobre App Building en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by