mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2024-09-14 18:03:51 +00:00
Page:
List
Pages
Align
BackStyle
BeforeInit
BeforeUnload
BeforeUpdateDisplay
Button
Caption
Checkbox
Color properties
Constants
Disabled
Events
Focus events
Font
Frame
Global Variables
HasBorder
Hidden
Home
KeyPress
Keyboard modifiers
Label
List methods
List
LoadImage
Mask
Menus
MessageBox Function
Methods
Min and Max
Mouse events
NumericTextbox
OnLoad
PasswordField
Picture box
PictureBox Drawing
Position and size
Progress bar
Properties
Radio button
SetCaption
SetFocus
Stretch
Text
TextChanged
Textbox
Toggle switch
Tool tip
Track bar
Value
ValueChanged
__UI_ prefix
__UI_ForceRedraw
__UI_KeepScreenHidden
__UI_KeyHit
__UI_UnloadSignal
No results
6
List
Fellippe Heitor edited this page 2021-12-22 12:12:15 -03:00
Table of Contents
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 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 method.