1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2024-09-19 12:14:49 +00:00

Updated List (markdown)

Fellippe Heitor 2018-06-17 17:54:08 -03:00
parent e46879085f
commit 303c61ba7a

15
List.md

@ -1,10 +1,21 @@
**Lists** present the user with selectable items. **Dropdown-lists** do the same but when they don't have focus, they only show the selected item, so that you have to click the down arrow button to see the rest of the list.
You add items using the AddItem property. At design time you do so by changing the List Items property. To add multiple items, separate them using a line break escape sequence (\n).
<div align="center">
<img src="https://www.qb64.org/inform/images/lists.png">
</div>
At design time, you can set its [[Value]] property to have an item saved preselected.
You add items using the AddItem method. At design time you do so by changing the List Items property. To add multiple items, separate them using a new line escape sequence (\n).
At design time, you can set the [[Value]] property to have an item saved preselected.
At run time, you can read which item is currently selected by reading the [[Value]] property:
theItem% = Control(ControlID).Value
To read the text of the selected item, use the [[GetItem|List methods]] method.
### [[Events]]
* [[ValueChanged]]
* [[Click|Mouse events#click]]
* [[MouseDown/MouseUp|Mouse events#mousedownmouseup]]
* [[MouseEnter/MouseLeave|Mouse events#mouseentermouseleave]]