I made a popupmenu in GUI, but how do i populate the popup with choices? thanks

 Respuesta aceptada

Sean de Wolski
Sean de Wolski el 25 de En. de 2012

0 votos

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?'})

Más respuestas (2)

Dr. Seis
Dr. Seis el 25 de En. de 2012

1 voto

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 comentarios

Andy
Andy el 25 de En. de 2012
but in property inspector i can only change 1 value, doesnt let me add more
Dr. Seis
Dr. Seis el 25 de En. de 2012
You can... you just need to click the list icon next to the edit dialog

Iniciar sesión para comentar.

beginner94
beginner94 el 31 de En. de 2018

0 votos

How can I connect the values I added to the popupmenu with their files? They are configfiles in this case, so no m files.

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de En. de 2012

Respondida:

el 31 de En. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by