Why am I unable to tab to some UICONTROLs in my GUI in MATLAB?
1 view (last 30 days)
Show older comments
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.
Accepted Answer
MathWorks Support Team
on 27 Jun 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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!