GUI window does not show up in front

I created an GUI window A using GUIDE. This window is supposed to be open when user clicks a button on another GUI window B. However, after clicking the button, window A does not show up in front. I can see the window has been created and shown in the task bar. But even clicking the window icon from task bar does not bring it to front. Basically, I can not see or operate on window A. What could be wrong for window A to continue staying at the back of other windows?
Thanks.

 채택된 답변

Boyang Zhang
Boyang Zhang 2012년 4월 17일

0 개 추천

It turned out Window A and Window B was using different units. When the handle (values only) is passed, window A is actually opened at the outer space :)

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 4월 12일

0 개 추천

Possibly the 'visible' property for it is currently set 'off' ? In B you need to set() the 'visible' property for figure A to be on.

댓글 수: 4

Boyang Zhang
Boyang Zhang 2012년 4월 13일
Hi Walter, thanks for your comment. The 'visible' property is already set to 'on' in the property inspector of window A. Do I need to set() that property again when window B calls window A?
Walter Roberson
Walter Roberson 2012년 4월 13일
If it is already visible there should not be any problem.
How do you ask to open "A" inside "B" ?
Boyang Zhang
Boyang Zhang 2012년 4월 13일
There is another .m file with the same name as window A. I am calling window A by using that file name as a function name in the Window B's source code.
Walter Roberson
Walter Roberson 2012년 4월 13일
Ah... possibly that code is turning off the visibility of A.
Put a breakpoint at the place A is called, and then single-step into that code in the debugger.

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

카테고리

도움말 센터File Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by