This shows you the differences between two versions of the page.
koda:en:documentation:control_listview [2014/07/10 10:48] |
koda:en:documentation:control_listview [2014/07/10 10:48] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ListView ====== | ||
+ | {{page> | ||
+ | {{page> | ||
+ | {|class=" | ||
+ | |- | ||
+ | |class=" | ||
+ | |class=" | ||
+ | |} | ||
+ | Creates a listview control | ||
+ | |||
+ | # | ||
+ | |||
+ | |**Align**|{{KODA> | ||
+ | |**Color**| {{KODA> | ||
+ | |**Columns**|Columns | ||
+ | |**ContextMenu**|{{KODA> | ||
+ | |**Cursor**|{{KODA> | ||
+ | |**Enabled**|False generates <color blue> | ||
+ | |**Font**|{{KODA> | ||
+ | |**Left, | ||
+ | |**Width, | ||
+ | |**Hint**|Text that appears when cursor hovers over control. Generates call to <color blue> | ||
+ | |**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> | ||
+ | |**OnClick**|Generates (in Message Loop mode) a <color blue> | ||
+ | |**Resizing**|{{KODA> | ||
+ | |**TabOrder**|Sequence in which controls are selected with the < | ||
+ | |**Visible**|If False, generates <color blue> | ||
+ | |||
+ | # | ||
+ | |||
+ | Each column has its own properties: | ||
+ | |||
+ | |**Alignment**|Alignment of header text: | ||
+ | |**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| | ||
+ | |||
+ | # | ||
+ | |||
+ | |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 < | ||
+ | |WS_HSCROLL|{{KODA> | ||
+ | |WS_VSCROLL|{{KODA> | ||
+ | |WS_VISIBLE|{{KODA> | ||
+ | |WS_BORDER|{{KODA> | ||
+ | |WS_CLIPSIBLINGS|{{KODA> | ||
+ | |||
+ | # | ||
+ | |||
+ | |WS_EX_CLIENTEDGE|{{KODA> | ||
+ | |WS_EX_STATICEDGE|{{KODA> | ||
+ | |||
+ | # | ||
+ | |||
+ | 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]]. | ||
+ | |||
+ | # | ||
+ | |||
+ | None |