How do I display initial value of popup menu at GUI launch?
3 ビュー (過去 30 日間)
古いコメントを表示
I am able to call up whatever value is shown after an initial selection, but the default value is still not getting used at launch. I have boiled this down to a much simpler GUI that basically displays whatever selection you have. What I would like to be able to do is have this display 'A' when the program launches, then A, B, C or D once they are selected from the popup menu.
See attached help.m file.
What am I piece of this puzzle am I missing?
2 件のコメント
Adam
2015 年 10 月 16 日
You forgot to attach your file.
You should just need to set the 'String' to { 'A', 'B', 'C', 'D' } and the 'Value' to 1 on creating your popup and that will show 'A' when it initialises.
Geoff Hayes
2015 年 10 月 16 日
Matt - this was answered in your previous question at http://www.mathworks.com/matlabcentral/answers/248860-need-help-understanding-the-popup-menu-in-gui.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Dialog Boxes についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!