By Pablo Pissanetzky
pablo@neosoft.com

Modified 25/6, Gudlaugur Stefan Egilsson
gse@skima.is

LBCheck.ZIP contains
LBCheck.PAS ,
LBCheck.DCR,
LBCheck.HLP ,
LBCheck.KWF and
LBCheck.TXT ( this file )

These files define a TCheclistBox component ready to be placed on the
component palette.

TCheckListBox is a ListBox component that adds a checkbox before each 
item in the list box.

It demonstrates how to implement owner drawn components,
array properties, how to create new event types for a 
component and how to use standard windows bitmaps in your
components.

----------------------------------------------------------------------
TO INSTALL:

Place lbcheck.pas and lbcheck.dcr in the same directory and 
from Delphi, select Options | Install component 
Pick the directory where the files are located, select lbcheck.pas 
and hit OK.
TCheckListBox will show up in the samples page of your component
palette.

Place LBCheck.HLP in a directory in your path. ( like the Windows directory )                                                   
Use HELPINST to add LBCheck.KWF to your help files.
----------------------------------------------------------------------

It has the following public properties:

Checked[ Index : integer ] : Boolean

Which allows the user to set an item checked or unchecked, or to
find out the state of an item.


Added 26/6 '96 by G Stefan Egilsson:

Bitmap : TBitmap

Instead of getting the standard checkbitmap, this lets the user
use his own bitmap. A typical bitmap for this property would
be 20x10 (Width = 20, Height =10), with the unchecked half on
the left and the checked half on the right. An example bitmap
is included.


AllowUserCheck : Boolean

If you don't want the user to be able to change the checked state
of the items, this is very useful.

----------------------------------------------------------------------

It has the following published properties:

OnCheck( Sender : TObject ; Index : Integer );
OnUnCheck( Sender : TObject ; Index : Integer );

	They are events which are triggered when an item's state 
	changes.
	Using these events, you can dynamically maintain a list of 
	all items that are checked.

----------------------------------------------------------------------

It has the following public methods

CheckSelection( Checked : Boolean )
	Sets all selected items to the state in 'Checked'
	True = Checked
	False = UnChecked

Toggle( Index : Integer )
	Toggles the state of the item at index

CheckAll( Checked : Boolean )
	Sets all items in the list box to the state in 'Checked'

----------------------------------------------------------------------

Enjoy,
Pablo Pissanetzky

PS: When I get my hands on a decent help file generator, I will create
a nice help file to accompany the component.

pablo@neosoft.com
