Search Locate Previous Next Contents

ListView (LV)


Description
Simple multiple selection from a Windows95 list view.

Indices – should an integer vector if indices into ...

Items – which is the text shown in the box. (Nested vector or matrix).

Checked – adds a selector column 0=off 1=on 2=locked on

If icons are required, Items can be a 2-column matrix, giving the items in column-2 and the image index in column 1. Extra columns specify the columns to the right when the list is in report view. Styles ‘gridlines’ and ‘full row select’ may be used here.

Class Property Table
NameTypeDefaultDescription
HintString
StyleManyOf
3DOneOf‘Recess’Border style
ItemsUserItems (vtv or n-col matrix)
IndicesUserSelected indices
SelectionUserBoolean vector (length equal to items)
CheckedUserOption settings 0-2 = off/on/locked
ImageIndexRuntimeIndex to icon (if not given in Items)
ColTitlesRuntimeColumn titles in report view (vtv)
ViewRuntimeView (‘Icon’ ‘SmallIcon’ ‘List’ ‘Report’)
SelectOneOf‘Multi’Selection strategy (‘Single’ ‘Multi’)
DragSourceBoolUser can drag items off this control
DragModeOneOfPermitted drag operations
DropAcceptStringListAccepts drag-over and drag-drop from these groups
EditableBoolItem labels may be edited by the user
ApplDataUserApplication data (matrix)

Class-specific Events
CCColumn Clicked
IDCItem double-clicked
IDGItem dragged
PCPostCreate
DRAGOFFItem dragged off the list
DRAGOVERItem dragged over the list
DRAGDROPItem dropped on the list
CONFMUser pressed enter
EDITUser changed label text
HRUser pressed F1
RMMRight-mouse menu request

Class-specific Functions
ColTitleAlignarg is a vector ‘Left’ ‘Right’ ‘Left’ ... etc
GetColWidthgets the column width (pixels); arg is column no(s).
SetColWidthsets the column width im[;column, pixels]
SetColWidthssets the leftmost column(s) in one call
SetImagetakes the name of one or two existing imagelist (IL) objects
SetViewarg can be ‘icon’ ‘smallicon’ ‘list’ ‘report’ (1st letter only reqd)
Sortsorts contents according to user-supplied array
SortByColumnsorts contents according to specified column


Continue to: ListView – DragSource Property
© Copyright Causeway Graphical Systems Ltd 2003