Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to take additional inputs from user after selecting an option from popup menu?
1 次查看(过去 30 天)
显示 更早的评论
Hello All, I am working in building a GUI from my script. Now I am at the point where I need guidance in popup menu of the GUI.
I have 4 different values for popup menu and I am trying to get additional inputs from user.
So suppose the values in my popup menu are:
--Select a combination--
Combination1
Combination2
Combination3
So now what I want is, initially the GUI will show --Select a combination-- as popup value. Now when user clicks on the drop down and select combination 1, a new window should open to get additional inputs required. Like wise if he selects combination2 while combination1 window is open, the combination1 window should close and combination2 window should open.
I hope I have explained it correctly.
0 个评论
回答(1 个)
Walter Roberson
2016-5-31
selection = get(hObject, 'Value');
switch selection
case 1: do_work_for_combination1(handles);
case 2: do_work_for_combination2(handles);
case 3: do_work_for_combination3(handles);
end
1 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!