How do I display initial value of popup menu at GUI launch?

5 次查看(过去 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
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by