Please enable JavaScript to view this site.

KOL/MCK - User Guide

function NewListbox( AParent: PControl; Options: TListOptions ): PControl;

 

Creates list box control. Following properties, methods and events are special for Listbox:

 

OnMeasureItem

property OnMeasureItem: TOnMeasureItem;

OnChange

property OnChange: TOnEvent;

OnSelChange

property OnSelChange: TOnEvent;

OnDrawItem

property OnDrawItem: TOnDrawItem;

BeginUpdate

procedure BeginUpdate;

IndexOf

function IndexOf( const S: KOLString ): Integer;

SearchFor

function SearchFor( const S: KOLString; StartAfter: Integer; Partial: Boolean ): Integer;

AddDirList

procedure AddDirList( const Filemask: KOLString; Attrs: DWORD );

Add

function Add( const S: KOLString ): Integer;

Insert

function Insert( Idx: Integer; const S: KOLString ): Integer;

Delete

procedure Delete( Idx: Integer );

LBItemAtPos

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

SelLength

property SelLength: Integer;

CurIndex

property CurIndex: Integer;

Count

property Count: Integer;

Items

property Items[ Idx: Integer ]: KOLString;

ItemSelected

property ItemSelected[ ItemIdx: Integer ]: Boolean;

ItemData

property ItemData[ Idx: Integer ]: DWORD;

LVItemHeight

property LVItemHeight: Integer;

LBTopIndex

property LBTopIndex: 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