Add new window to OpeningFcn of MATLAB gui goes to back of main window when running

조회 수: 1 (최근 30일)
I have a 'Main_window' in MATLAB guide. I want open a 'New_window' when I run 'Main_window', So I add this code in 'OpeningFcn' of 'Main_window' :
New_window();
When I run 'Main_window', 'New_window' goes to back of 'Main_window'. I want it in front of 'Main_window' after running.
What should I do?
Thanks.

채택된 답변

Geoff Hayes
Geoff Hayes 2014년 7월 31일
Jack - to be clear, you want to launch a second GUI from the first without any user interaction such that the second GUI appears in front of the first? If so, try adding the line of code New_window() to the OutputFcn of the Main_window.
  댓글 수: 5
Geoff Hayes
Geoff Hayes 2014년 7월 31일
Not naive at all. Where would the uiresume go?
Ben11
Ben11 2014년 7월 31일
Maybe in the CloseRequest function of the New_window? I don't know the exact word for it actually sorry. The idea being that the program resumes to Main_Window only when New_Window is closed.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by