- Foreword
- Basics
- Interface
- Menu
- File
- Import
- Edit
- View
- Options
- Options
- Tools
- Help
- Windows & Dialogs
- Controls
- Standard
- Additional
- Win32
-
- Property Editors
- Appendices
{|class=“cboxtable”
| class=“cboxcell1” |
| class=“cboxcell2” |
Creates a list control
#remarks_header[Properties:]#
| Align | Design only property, does not generate code, helps with aligning controls while editing. alBottom - control moves to bottom of client area, resizes to width of client area x original height alClient - control occupies the whole of the client area alCustom - not used alLeft - control moves to left edge of client area, resizes to original width x height of client area alNone - no aligning alRight - control moves to right edge of client area, resizes to original width x height of client area alTop - control moves to top of client area, resizes to width of client area x original height |
| Color | Background color of control. Choose from the list, or enter your own. Format is 0xnumber where number is 6 hexadecimal digits: 2 for blue, 2 for green and 2 for red |
| ContextMenu | Specifies html_wikilink('control_contextmenu','context menu') to attach to control. html_wikilink('create_menu','Create the ContextMenu') first |
| Cursor | Cursor shape to display when mouse is over this control |
| Enabled | False generates <color blue>GUICtrlSetState(-1, $GUI_DISABLE)</color> |
| Font | Double-click to the right to open the Font dialog. Click on + to show the Color, Name, Size and Style properties |
| Left,Top | Position of control relative to its parent |
| Width,Height | Size of control in pixels |
| Hint | Text that appears when cursor hovers over control. Generates call to <color blue>GUICtrlSetTip</color> |
| Items | Double-click to open Strings Editor. Enter one item per line. Generates call to <color blue>GUICtrlSetData</color> which uses item separator specified in Options→Options→Code Generator Formatting |
| Name | Name of control and of the variable that is assigned its control ID in generated code. If not specified, no variable is generated |
| OnClick | Generates (in Message Loop mode) a |
| Resizing | Click on + to expand resize modes: DocAuto - resize and reposition according to new window size DocRight - Do not move right side DocLeft - Do not move left side DocTop - Do not move top DocBottom - Do not move bottom DocHCenter - Horizontal center remains fixed DocVCenter - Vertical center remains fixed DocWidth - Width does not change DocHeight - Height does not change |
| TabOrder | Sequence in which controls are selected with the Tab and Shift+Tab keys. For a Form and for each Group, TabOrder starts with 0. You may prefer to use the TabOrder Visual Editor: press Ctrl+T to open it. |
| Visible | If False, generates <color blue>GUICtrlSetState(-1, $GUI_HIDE)</color> |
#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 Shift+Tab |
| WS_HSCROLL | Control has horizontal scroll bar |
| WS_VSCROLL | Control has vertical scroll bar |
| WS_BORDER | Control has a thin-line border |
| WS_CLIPSIBLINGS | If this control overlaps with another, this control shows partially |
#remarks_header[Extra Styles:]#
| WS_EX_CLIENTEDGE | Control has border with sunken edge |
| WS_EX_STATICEDGE | Control has a three-dimensional border |
#remarks_header[Remarks:]#
None
#remarks_header[Related:]#
None