Return focus to main window

1 次查看(过去 30 天)
Roni Ben Dom
Roni Ben Dom 2019-5-8
Hi all,
Im building a GUI using appdesigner, there are check boxes that can be controled via keybored (0-3) and by mouse also, plus some bottuns.
Every time I use the mouse to click one of the check boxes or buttons the focus goes there and the program doesnt receive keybored input anymore until I click back at the background of the GUI.
I trued varius things such as Figure(app.UIFigure) and to use drawnow, nothing works. Im about to try writing a script in java that moves the mouse a bit and clicks it but it seems an off idea, too much going around the problem and not solving it.
Does anyone have an idea on how to solve it?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by