How to create the button "next" in a GUI?

조회 수: 4 (최근 30일)
Bernardo Marino
Bernardo Marino 2016년 7월 22일
댓글: Geoff Hayes 2018년 5월 13일
I created with GUIDE, a simple gui. The interface consists of static text, edit text and a button. When i push the button, i would like to "turn the page", so as to put other edit text, static text or buttons. The code is generated by GUIDE, but do not understand how to change it. Perhaps, i should write something inside the buttonNext_Callback function. It is my first gui and do not know how to do.

채택된 답변

Geoff Hayes
Geoff Hayes 2016년 7월 22일
Bernardo - yes, in the next button callback function you would hide the existing controls and display the next set of controls. Or, you can use panels to represent the "pages" of your GUI. Create a panel and add the controls from above. Then create another panel with a different set of controls. When the user presses the next button, the Visible property for the first panel is set to off and that for the other is set to on.
  댓글 수: 3
Savannah Morrissey Martin
Savannah Morrissey Martin 2018년 5월 11일
Is this possible to do in app builder?
Geoff Hayes
Geoff Hayes 2018년 5월 13일
Hi Savannah - I'm not sure..I'm still using R2014a.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by