필터 지우기
필터 지우기

Can you keep a Matlab GUI from jumping to foreground when updated

조회 수: 3 (최근 30일)
Adam
Adam 2013년 2월 13일
Quick question:
I have a timer that updates a GUI every 5 min. When I write the new data to the GUI, can I do it in a way that the GUI does not jump to the foregound or un-minimize?
Thanks, Adam
  댓글 수: 3
Jan
Jan 2013년 2월 13일
I agree with Sean: It is not the timer function in general, whose is stealing the focus, but a specific command. It is not trivial to locate this command using the debugger, because stepping through the code line by line steals the focus already by activating the editor. But inserting some dummy disp() lines can reveal the responsible command.
Adam
Adam 2013년 3월 13일
Sorry it took so long to get back to this code, however I finally tracked it down to the outside function doing a handles = guidata(gui_name) call so that disp/edit windows can be updated directly. This is the call that forces the GUI to POP to the top. I am not sure if the set calls would also force the GUI to pop however, I will continue my testing.

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

답변 (1개)

Image Analyst
Image Analyst 2013년 2월 13일
For what it's worth: search on stealing focus

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by