Often a data item can take any of a discrete number of values stored in a series. For this, we need to use some kind of list face. Here is a window using list faces, from left to right, text-list, drop-list, and drop-down:
Here is the code:
;-- see Chapter09/list-faces.red:city-trip: copy ["Paris" "London" "Leipzig" "Rome" "New York" "Beijing"]view [ title "List faces" t1: text "Click on a city to visit ->" text-list 100x100 data city-trip [t1/text: pick face/data face/selected] t2: text "Click on a city to visit ->" drop-list data city-trip [t2/text: pick face/data face/selected] t3: text ...