Removing windows from Tab order GUI

2 次查看(过去 30 天)
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