Controlling the tab order of UI components
1 回表示 (過去 30 日間)
古いコメントを表示
I'm building UI with GUIDE that provides users with multiple (~50) options for accessing, processing, and plotting geophysical data from multiple sources and formats (satellites, re-analysis, model output). First pass data entry can be time consuming when many options need to be changed.
One UI attribute that speeds up that process is when pressing the Tab button advances focus to the next logical UI control element (e.g. from startDay edit text box to endDay edit text box). When that's done properly it's easy for the user to rapidly enter lots of control information such as startYear, endYear, startMonth, endMonth, startDay, endDay, etc... Just enter a number and Tab advance to the next edit text box where focus is already set. Type in new number, and Tab to next. Repeat...
If it's not done properly, the process is much more laborious. Tab advance jumps focus all over the UI to unrelated input boxs, radio buttons, etc. User has to mouse click to the desired text box before doing data entry.
QUESTION: Where is the order in which that (Tab initiated) advance from one UI element to the next controlled and how can it be modified? It seems to stem from the order the element was originally created in GUIDE, but once that's done, I'm unable to change the behavior of Tab advance in the resulting UI. Modifying where each element's create and callback functions appear in .m code does not change this Tab advance order.
If providing a code snippet would help, glad to do that.
Thanks!
Mike
0 件のコメント
採用された回答
Steven Lord
2017 年 6 月 14 日
2 件のコメント
Adam
2017 年 6 月 14 日
Unfortunately though if you have UI components grouped in panels there is no option (at least not that I have ever found) to determine what order the panels are visited during tabbing, as the tab order editor only defines the order within a given parent.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!