From 303c61ba7a81bc75059b099032745278dc91659d Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Sun, 17 Jun 2018 17:54:08 -0300 Subject: [PATCH] Updated List (markdown) --- List.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/List.md b/List.md index 109d375..0a692f3 100644 --- a/List.md +++ b/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). +
+ +
-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]]