Please enable JavaScript to view this site.

KOL/MCK - User Guide

function NewListView( AParent: PControl; Style: TListViewStyle; Options: TListViewOptions; ImageListSmall, ImageListNormal, ImageListState: PImageList ): PControl;

 

Creates list view control. It is very powerful control, which can partially compensate absence of grid controls (in lvsDetail view mode).

 

Properties, methods and events, special for list view control are:

 

OnMeasureItem

property OnMeasureItem: TOnMeasureItem;

OnEndEditLVItem

property OnEndEditLVItem: TOnEditLVItem;

OnLVDelete

property OnLVDelete: TOnDeleteLVItem;

OnDeleteLVItem

property OnDeleteLVItem: TOnDeleteLVItem;

OnDeleteAllLVItems

property OnDeleteAllLVItems: TOnEvent;

OnLVData

property OnLVData: TOnLVData;

OnCompareLVItems

property OnCompareLVItems: TOnCompareLVItems;

OnColumnClick

property OnColumnClick: TOnLVColumnClick;

OnLVStateChange

property OnLVStateChange: TOnLVStateChange;

OnDrawItem

property OnDrawItem: TOnDrawItem;

OnLVCustomDraw

property OnLVCustomDraw: TOnLVCustomDraw;

BeginUpdate

procedure BeginUpdate;

Delete

procedure Delete( Idx: Integer );

SetUnicode

function SetUnicode( Unicode: Boolean ): PControl;

LVColAdd

procedure LVColAdd( const aText: KOLString; aalign: TTextAlign; aWidth: Integer );

LVColInsert

procedure LVColInsert( ColIdx: Integer; const aText: KOLString; aAlign: TTextAlign; aWidth: Integer );

LVColDelete

procedure LVColDelete( ColIdx: Integer );

LVNextItem

function LVNextItem( IdxPrev: Integer; Attrs: DWORD ): Integer;

LVNextSelected

function LVNextSelected( IdxPrev: Integer ): Integer;

LVAdd

function LVAdd( const aText: KOLString; ImgIdx: Integer; State: TListViewItemState; StateImgIdx, OverlayImgIdx: Integer; Data: DWORD ): Integer;

LVItemAdd

function LVItemAdd( const aText: KOLString ): Integer;

LVInsert

function LVInsert( Idx: Integer; const aText: KOLString; ImgIdx: Integer; State: TListViewItemState; StateImgIdx, OverlayImgIdx: Integer; Data: DWORD ): Integer;

LVItemInsert

function LVItemInsert( Idx: Integer; const aText: KOLString ): Integer;

LVDelete

procedure LVDelete( Idx: Integer );

LVSetItem

procedure LVSetItem( Idx, Col: Integer; const aText: KOLString; ImgIdx: Integer; State: TListViewItemState; StateImgIdx, OverlayImgIdx: Integer; Data: DWORD );

LVSelectAll

procedure LVSelectAll;

LVItemRect

function LVItemRect( Idx: Integer; Part: TGetLVItemPart ): TRect;

LVSubItemRect

function LVSubItemRect( Idx, ColIdx: Integer ): TRect;

LVItemAtPos

function LVItemAtPos( X, Y: Integer ): Integer;

LVItemAtPosEx

function LVItemAtPosEx( X, Y: Integer; var Where: TWherePosLVItem ): Integer;

LVMakeVisible

procedure LVMakeVisible( Item: Integer; PartiallyOK: Boolean );

LVEditItemLabel

procedure LVEditItemLabel( Idx: Integer );

LVSort

procedure LVSort;

LVSortData

procedure LVSortData;

LVSortColumn

procedure LVSortColumn( Idx: Integer );

SelLength

property SelLength: Integer;

Count

property Count: Integer;

ItemSelected

property ItemSelected[ ItemIdx: Integer ]: Boolean;

RightClick

property RightClick: Boolean;

ImageListSmall

property ImageListSmall: PImageList;

ImageListNormal

property ImageListNormal: PImageList;

ImageListState

property ImageListState: PImageList;

LVStyle

property LVStyle: TListViewStyle;

LVOptions

property LVOptions: TListViewOptions;

LVTextColor

property LVTextColor: TColor;

LVTextBkColor

property LVTextBkColor: TColor;

LVBkColor

property LVBkColor: TColor;

LVColCount

property LVColCount: Integer;

LVColWidth

property LVColWidth[ Item: Integer ]: Integer;

LVColText

property LVColText[ Idx: Integer ]: KOLString;

LVColAlign

property LVColAlign[ Idx: Integer ]: TTextAlign;

LVColImage

property LVColImage[ Idx: Integer ]: Integer;

LVColOrder

property LVColOrder[ Idx: Integer ]: Integer;

LVCount

property LVCount: Integer;

LVCurItem

property LVCurItem: Integer;

LVFocusItem

property LVFocusItem: Integer;

LVItemState

property LVItemState[ Idx: Integer ]: TListViewItemState;

LVItemStateImgIdx

property LVItemStateImgIdx[ Idx: Integer ]: Integer;

LVItemOverlayImgIdx

property LVItemOverlayImgIdx[ Idx: Integer ]: Integer;

LVItemData

property LVItemData[ Idx: Integer ]: DWORD;

LVSelCount

property LVSelCount: Integer;

LVItemImageIndex

property LVItemImageIndex[ Idx: Integer ]: Integer;

LVItems

property LVItems[ Idx, Col: Integer ]: KOLString;

LVItemPos

property LVItemPos[ Idx: Integer ]: TPoint;

LVTopItem

property LVTopItem: Integer;

LVPerPage

property LVPerPage: Integer;

LVItemHeight

property LVItemHeight: Integer;

 

KOL / MCK User Guide - Created by Carl Peeraer - Diamant Soft, based on the work of Vladimir Kladov - Artwerp.be

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Nav Header: ALT+n
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Exit Menu/Up: ESC