필터 지우기
필터 지우기

nested popup boxes?

조회 수: 1 (최근 30일)
Andy
Andy 2011년 9월 8일
I use inputdlg to get a popup box when i pressed a button in my GUI. now i need another popup to come up when i press a button inside the inputdlg box. is this possible? So is like this, GUI -> Button -> popup box from inputdlg -> another popup box from the 1st popup
Thanks

답변 (1개)

Walter Roberson
Walter Roberson 2011년 9월 8일
If you mean that when you point to the popup selection that a second popup box comes up, then the answer is that there is no provided facility to do that, and the mechanisms that could make it happen require advanced programming.
If you mean that when you click on a popup selection that a second popup box comes up, then that is relatively easy to code within the callback of the first popup.
  댓글 수: 2
Andy
Andy 2011년 9월 8일
i think i mean the second one, but i think i mean, i click on a button, and then a popup comes up, and then is it possible when i click something in that popup, another popup comes up? so its like button->popup (using inputdlg) -> and then another popup from the 1st popup. thanks
Walter Roberson
Walter Roberson 2011년 9월 8일
Ah, I just realized that when you say "popup" you do *not* mean uicontrol('Style','popup') .
Anyhow, the answer to your question is Yes. However this falls in to the "if you want to get fancier" part of my answer to one of your previous questions, http://www.mathworks.com/matlabcentral/answers/15264-how-can-i-get-a-popup-from-a-push-button

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

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by