====== ListView ====== {{page>commctrl}} {{page>commstyle}} {|class="cboxtable" |- |class="cboxcell1"|{{ control_listview.gif |}} |class="cboxcell2"|**TAListView** |} Creates a listview control #remarks_header[Properties:]# |**Align**|{{KODA>VAR>Align}} | |**Color**| {{KODA>VAR>Color}}| |**Columns**|Columns and their headings (in report mode). Double-click to the right to specify them using [[proped_collection_editor|Columns editor]] | |**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 | |**Images**|If list items are to have icons, select an ImageList from drop-down to attach it. The ImageList must already exist.| |**Items**|Double-click to the right to specify list contents using [[proped_listview_editor]]. | |**Name**|{{KODA>VAR>Name}} | |**OnClick**|Generates (in Message Loop mode) a Case or (in OnEvent mode) a call to GUISetOnEvent and a skeleton event function. Double-click to right to open [[proped_events_editor]] | |**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[Columns:]# Each column has its own properties: |**Alignment**|Alignment of header text: **taCenter**,**taLeftJustify**, **taRightJustify**| |**Caption**|Text of column header | |**Width**|Width of column. Special values:\\ -1 - width is set to maximum width of items in the column\\ -2 - width is width of text in column header| #remarks_header[Styles:]# |LVS_REPORT|Report view: has columns with or without headings | |LVS_LIST|List view: a list, optionally with 32x32 icons | |LVS_EDITLABELS|Item text can be edited in place | |LVS_NOCOLUMNHEADER|Column headers are not displayed in report view | |LVS_SINGLESEL|Restricts selection to one row, rather than being able to select multiple rows. Requires LVS_REPORT | |LVS_SHOWSELALWAYS|Retains selection of row when control loses focus | |LVS_SORTASCENDING|Sorts rows in ascending alphabetic order of first column | |LVS_SORTDESCENDING|Sorts rows in ascending alphabetic order of first column | |LVS_NOLABELWRAP|Items are restricted to a single line, rather than wrapping to a second line | |LVS_NOSCROLL|Prevent scroll bars showing when data exceeds bounds of control | |WS_TABSTOP|Control can be selected with Tab and S-Tab | |WS_HSCROLL|{{KODA>VAR>WS_HSCROLL}} | |WS_VSCROLL|{{KODA>VAR>WS_VSCROLL}} | |WS_VISIBLE|{{KODA>VAR>WS_VISIBLE}} | |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:]# Column 0 can only be left-justified when created. To right- or center-justify this column, use the procedure in [[proped_collection_editor|Columns editor]]. #remarks_header[Related:]# None