reference / interface
dropdown
A drop-down list in a ui block that gives the item chosen, from a list of text: shape = dropdown "shape" [ "circle" "square" "star" ]. It starts on the first item, or on the one start names, and keeps the choice as the sketch reloads.
shape = "circle"ui [ shape = dropdown "shape" [ "circle" "square" ] ]draw [ if shape is "circle" [ circle at 200 150 radius 60 ] else [ square at 140 90 size 120 ]]
How to write it
dropdown text items [start text] [at number number] [width number]
Gives text.