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