popupmenu in GUI
26 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Andy
am 25 Jan. 2012
Beantwortet: beginner94
am 31 Jan. 2018
I made a popupmenu in GUI, but how do i populate the popup with choices? thanks
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 25 Jan. 2012
Press return in the string option in GUIDE to start new lines.
Programatically, use a cellarray of strings for the string option:
uicontrol('style','popup','string',{'option 1';'hello world';'Is it Friday yet?'})
0 Kommentare
Weitere Antworten (2)
Dr. Seis
am 25 Jan. 2012
temp_cellstr = {'choice 1';'choice 2';'choice 3'};
set(handles.your_popup_name,'String',temp_cellstr);
Or you can open the "Property Inspector" inside GUIDE and manually change the String values there.
2 Kommentare
beginner94
am 31 Jan. 2018
How can I connect the values I added to the popupmenu with their files? They are configfiles in this case, so no m files.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!