nested popup boxes?

3 ビュー (過去 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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by