Removing windows from Tab order GUI

조회 수: 2 (최근 30일)
Naty Shemer
Naty Shemer 2017년 2월 2일
댓글: Naty Shemer 2017년 3월 7일
Hey, I have got a GUI with quite a lot of figures/ buttons etc. So when the users presses the Tab key it switches between all those figures\buttons. I want the user to switch only between 2-3 buttons\figures. Is there a way to remove objects from the Tab Order Editor?
Thanks, Naty
  댓글 수: 1
Naty Shemer
Naty Shemer 2017년 3월 7일
If anyone is interested this is the response from MathWorks:
After discussing this with my colleagues, depending on your use case, there are a couple of things that may help achieve this:
Considering your example of three listboxes, you can set the "enable" property in the property inspector for that listbox which needs to be reachable only using the mouse to "inactive". This will effectively limit the tabbing between the remaining two listboxes. However, please note that setting to "inactive" will make this uicontrol not operational. You can learn more about this property here:
https://www.mathworks.com/help/matlab/ref/uicontrol-properties.html#property_Enable
Alternatively, you can set the tabbing order between the listboxes using the "tab order editor" and then use "tab" to cycle forwards and "shift + tab" to cycle backwards. You can learn more about this here:
https://www.mathworks.com/help/matlab/creating_guis/setting-tab-order.html
However, currently there appears to be no direct way to achieve a workflow where all three uicontrol elements are active and yet being controlled selectively from the keyboard and the mouse.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by