필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Creating a GUI which contains another GUI

조회 수: 2 (최근 30일)
Katharina
Katharina 2014년 7월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
I want to create a GUI which contains another GUI.
Imagine any installation programm. At the left side there are the installation steps which do not change, on the right side the figures change by pressing a button.
So I want one GUI which is "fix" and in this GUI, I want a kind of panel in which i can open other GUI's. I hope you understand my question.
Thanks.

답변 (1개)

Nir Rattner
Nir Rattner 2014년 8월 4일
The best way to create a dynamic GUI is to change the “Visible” property of uicontrol elements to display and hide them as needed. Using uipanel elements not only organizes the appearance of the GUI, but also makes the code cleaner because changing the “Visible” property of a uipanel will propagate down to its child uicontrols.
Alternatively, you can create and delete uipanel and uicontrol elements. If you want to remove a uipanel full of uicontrol elements, you can just call the “delete” function on the uipanel. If you want to add a uipanel full of uicontrol elements, you can call the functions to create them. This is less recommended, especially if you plan on going back and forth between views, because it involves creating and deleting elements on the fly.
Attached are short examples of each approach.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by