Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

How to make a drop-down selector UI component? Something that looks like this

share|improve this question
add comment

1 Answer 1

You want to use PopupMenu:

PopupMenu[a, {a, b, c, d}]

Mathematica graphics

Note, if you want it to be dynamically linked to a variable, use:

PopupMenu[Dynamic[x], {a, b, c, d}]

Then, x takes the value given by the drop down menu:

Mathematica graphics

share|improve this answer
    
I don't need to show anything such as a plot that depends on the value selected in the drop-down. Rather, I just need a state-recorder that knowns the user's selection in the menu which can later be read out from the notebook. –  Problemaniac Sep 10 '12 at 18:29
    
@MaThEmAtika See my last update. –  Eli Lansey Sep 10 '12 at 18:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.