Add new window to OpeningFcn of MATLAB gui goes to back of main window when running
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jack
el 31 de Jul. de 2014
Comentada: Ben11
el 31 de Jul. de 2014
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.
0 comentarios
Respuesta aceptada
Geoff Hayes
el 31 de Jul. de 2014
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 comentarios
Ben11
el 31 de Jul. de 2014
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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!