Azzera filtri
Azzera filtri

nested popup boxes?

1 visualizzazione (ultimi 30 giorni)
Andy
Andy il 8 Set 2011
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

Risposte (1)

Walter Roberson
Walter Roberson il 8 Set 2011
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 Commenti
Andy
Andy il 8 Set 2011
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 il 8 Set 2011
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

Accedi per commentare.

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by