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:
property OnMeasureItem: TOnMeasureItem; |
|
---|---|
property OnEndEditLVItem: TOnEditLVItem; |
|
property OnLVDelete: TOnDeleteLVItem; |
|
property OnDeleteLVItem: TOnDeleteLVItem; |
|
property OnDeleteAllLVItems: TOnEvent; |
|
property OnCompareLVItems: TOnCompareLVItems; |
|
property OnColumnClick: TOnLVColumnClick; |
|
property OnLVStateChange: TOnLVStateChange; |
|
property OnDrawItem: TOnDrawItem; |
|
property OnLVCustomDraw: TOnLVCustomDraw; |
|
procedure BeginUpdate; |
|
procedure Delete( Idx: Integer ); |
|
function SetUnicode( Unicode: Boolean ): PControl; |
|
procedure LVColAdd( const aText: KOLString; aalign: TTextAlign; aWidth: Integer ); |
|
procedure LVColInsert( ColIdx: Integer; const aText: KOLString; aAlign: TTextAlign; aWidth: Integer ); |
|
procedure LVColDelete( ColIdx: Integer ); |
|
function LVNextItem( IdxPrev: Integer; Attrs: DWORD ): Integer; |
|
function LVNextSelected( IdxPrev: Integer ): Integer; |
|
function LVAdd( const aText: KOLString; ImgIdx: Integer; State: TListViewItemState; StateImgIdx, OverlayImgIdx: Integer; Data: DWORD ): Integer; |
|
function LVItemAdd( const aText: KOLString ): Integer; |
|
function LVInsert( Idx: Integer; const aText: KOLString; ImgIdx: Integer; State: TListViewItemState; StateImgIdx, OverlayImgIdx: Integer; Data: DWORD ): Integer; |
|
function LVItemInsert( Idx: Integer; const aText: KOLString ): Integer; |
|
procedure LVDelete( Idx: Integer ); |
|
procedure LVSetItem( Idx, Col: Integer; const aText: KOLString; ImgIdx: Integer; State: TListViewItemState; StateImgIdx, OverlayImgIdx: Integer; Data: DWORD ); |
|
procedure LVSelectAll; |
|
function LVItemRect( Idx: Integer; Part: TGetLVItemPart ): TRect; |
|
function LVSubItemRect( Idx, ColIdx: Integer ): TRect; |
|
function LVItemAtPos( X, Y: Integer ): Integer; |
|
function LVItemAtPosEx( X, Y: Integer; var Where: TWherePosLVItem ): Integer; |
|
procedure LVMakeVisible( Item: Integer; PartiallyOK: Boolean ); |
|
procedure LVEditItemLabel( Idx: Integer ); |
|
procedure LVSort; |
|
procedure LVSortData; |
|
procedure LVSortColumn( Idx: Integer ); |
|
property SelLength: Integer; |
|
property Count: Integer; |
|
property ItemSelected[ ItemIdx: Integer ]: Boolean; |
|
property RightClick: Boolean; |
|
property ImageListSmall: PImageList; |
|
property ImageListNormal: PImageList; |
|
property ImageListState: PImageList; |
|
property LVStyle: TListViewStyle; |
|
property LVOptions: TListViewOptions; |
|
property LVTextColor: TColor; |
|
property LVTextBkColor: TColor; |
|
property LVBkColor: TColor; |
|
property LVColCount: Integer; |
|
property LVColWidth[ Item: Integer ]: Integer; |
|
property LVColText[ Idx: Integer ]: KOLString; |
|
property LVColAlign[ Idx: Integer ]: TTextAlign; |
|
property LVColImage[ Idx: Integer ]: Integer; |
|
property LVColOrder[ Idx: Integer ]: Integer; |
|
property LVCount: Integer; |
|
property LVCurItem: Integer; |
|
property LVFocusItem: Integer; |
|
property LVItemState[ Idx: Integer ]: TListViewItemState; |
|
property LVItemStateImgIdx[ Idx: Integer ]: Integer; |
|
property LVItemOverlayImgIdx[ Idx: Integer ]: Integer; |
|
property LVItemData[ Idx: Integer ]: DWORD; |
|
property LVSelCount: Integer; |
|
property LVItemImageIndex[ Idx: Integer ]: Integer; |
|
property LVItems[ Idx, Col: Integer ]: KOLString; |
|
property LVItemPos[ Idx: Integer ]: TPoint; |
|
property LVTopItem: Integer; |
|
property LVPerPage: Integer; |
|
property LVItemHeight: Integer; |