====== List ======
{{page>commctrl}}
{{page>commstyle}}
{|class="cboxtable"
|-
|class="cboxcell1"|{{ control_list.gif |}}
|class="cboxcell2"|**TAList**
|}
Creates a list control
#remarks_header[Properties:]#
|**Align**|{{KODA>VAR>Align}} |
|**Color**|{{KODA>VAR>Color}} |
|**ContextMenu**|{{KODA>VAR>ContextMenu}} |
|**Cursor**|{{KODA>VAR>Cursor}} |
|**Enabled**|False generates GUICtrlSetState(-1, $GUI_DISABLE) |
|**Font**|{{KODA>VAR>Font}} |
|**Left,Top**|{{KODA>VAR>Left,Top}} |
|**Width,Height**|{{KODA>VAR>Width,Height}} |
|**Hint**|Text that appears when cursor hovers over control. Generates call to GUICtrlSetTip |
|**Items**|Double-click to open [[proped_strings_editor]]. Enter one item per line. Generates call to GUICtrlSetData which uses item separator specified in Options->Options->Code Generator Formatting|
|**Name**|{{KODA>VAR>Name}} |
|**OnClick**|{{KODA>VAR>StdEvent}} |
|**Resizing**|{{KODA>VAR>Resizing}} |
|**TabOrder**|Sequence in which controls are selected with the Tab and S-Tab keys. For a Form and for each Group, TabOrder starts with 0. You may prefer to use the [[dialog_tab_order_editor|TabOrder Visual Editor]]: press C-t to open it. |
|**Visible**|If False, generates GUICtrlSetState(-1, $GUI_HIDE) |
#remarks_header[Styles:]#
|LBS_NOTIFY|Sends notification messages to form when use clicks or double-clicks an item, or uses the keyboard to change a selection |
|LBS_SORT|Sorts string items alphabetically |
|LBS_MULTIPLESEL|User can click to select multiple items |
|LBS_HASSTRINGS|Specifies that control contains items consisting of text, and that they are to be stored in memory managed by the control. |
|LBS_USETABSTOPS|Recognizes and expands tab characters in strings. Send LB_SETTABSTOPS to override the default positions |
|LBS_NOINTEGRALHEIGHT|List box is exactly Height pixels high, rather than adjusting so no items show partially |
|LBS_DISABLENOSCROLL|Scroll bar(s) show even when not needed |
|LBS_NOSEL|Items can be viewed but not selected |
|LBS_STANDARD|LBS_NOTIFY, LBS_SORT, WS_VSCROLL and WS_BORDER |
|LBS_MULTICOLUMN|When one column of items fills the height of the control, items continue in a second column |
|LBS_WANTKEYBOARDINPUT|User can select items with keystrokes |
|LBS_EXTENDEDSEL|User can click to select one item, then shift-click to select all items down to (or up to) another item |
|LBS_NODATA|For use when huge number of items. User code populates list and handles it, managing the memory required |
|WS_TABSTOP|Control can be selected with Tab and S-Tab |
|WS_HSCROLL|{{KODA>VAR>WS_HSCROLL}} |
|WS_VSCROLL| {{KODA>VAR>WS_VSCROLL}}|
|WS_BORDER|{{KODA>VAR>WS_BORDER}} |
|WS_CLIPSIBLINGS|{{KODA>VAR>WS_CLIPSIBLINGS}} |
#remarks_header[Extra Styles:]#
|WS_EX_CLIENTEDGE|{{KODA>VAR>WS_EX_CLIENTEDGE}}|
|WS_EX_STATICEDGE|{{KODA>VAR>WS_EX_STATICEDGE}} |
#remarks_header[Remarks:]#
None
#remarks_header[Related:]#
None