필터 지우기
필터 지우기

How can i get a popup from a push button?

조회 수: 2 (최근 30일)
Andy
Andy 2011년 9월 6일
How can i get another GUI to popup after i press a push button? So when i press the push button, a popup box will come up and the user can input things (numbers), which then will be fed into the main program. If this possible, does anyone know of any work arounds? Thanks

답변 (1개)

Walter Roberson
Walter Roberson 2011년 9월 6일
See inputdlg()
If you want to get fancier than that, you can create a figure (make its 'WindowStyle' to 'modal' if you want) and put whatever GUI elements you want in it.
Sometimes it is useful to create the input dialog ahead of time, and set its 'Visible' property to 'off'; then the callback for the pushbutton might be as simple as setting the figure to be visible.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by