Skip to reading
Panels, Tabs & List Boxes

18. Use the list as a dropdown

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Dropdown View gives the same list a collapsed header. This suits a destination selector, category filter or compact choice control. The data source and selection rules remain the same.

1. Add a List Box with ID route_list. Make it 525 pixels wide and 52 high.

2. Enable Dropdown View. Set Dropdown List Height to 190.

3. Use a String variable selected_route as Selected Item Variable.

4. In Text & Content, enter Choose a destination... in the dropdown placeholder text field.

5. Place the element high enough that its expanded list fits below it.

Figure 26. Dropdown View and Dropdown List Height. The source here is the route_rows Array described in Chapter 19.

The element’s own Height controls the collapsed button. Dropdown List Height controls the list below it when open. Increasing one does not replace the other.

Page 30 of 50Permalink
Go to page