TSuperList Component v 1.7

by David Koretzky
Spanware, Inc. copyright 1999

contact: david@spanware.com


NEW VERSION v 1.7

Changes:

Proprty ListBoxAlignment - now has the ability to put the button panel on all four sides
			   as opposed to the top and right offered before.

New Properties:

UseKeyMaps - boolean : This relates to the new event added for KeyDown on the ListBox.  If you have
		       this set to true Ctrl-A will add an item, Ctrl-D will delete, Ctrl-E or Enter 
		       will edit the current item.  Default is false

New Events:

OnlistBoxKeyDown    : Put in special processing o handlke keydown events on the imbedded ListBox.


New Methods:

procedure AddItems(value : TStrings) = will append value to the items in the Listbox.



TSuperList is a free open source component for Delphi 2.0 and C++ Builder 1.0 
(it will work in later versions, just build a package)
that incorporates better control over a standard TListbox control.
TSuperList incorporates a panel with a plus and minus button for
addition to and deletion from a listbox.  Input and editing is made
through a built in InputBox, so it requires no coding to add, delete,
or edit items in the listbox.  The majority of the testing has been
done in C++ Builder because that is the environment that I work in
most.  I wrote it in Delphi so that it reaches a greater number of people.
Feel free to modify source or make changes as you see fit.

If you have any problems or comments feel free to email me at the
above address.


* Custom Designtime Properties *

AddPrompt - String : The prompt that appears in the input box
that appears when the plus button is pressed.

AddCaption - String : The caption of the list box that
appears in the InputBox when the plus button is pressed.

AllowBlanks - Boolean : Set to true to allow blanks to be
accepted from the InputBox during addition of items or
editing in the listbox.

EditPrompt - String : Same as AddPrompt except this is for
editing when an item is double clicked in the listbox.

EditCaption - String : See AddCaption

ListBoxAlignment - TListBoxAlignment : lbBottom puts the
listbox below the panel containing the buttons while
lbLeft puts the listbox to the buttons.

ListBoxFont - TFont : Font for the listbox

ListBoxItems - TStrings : Items in the listbox

MaxLength - Integer : Maximum length allowed when
adding or editing an item in the listbox.  The InputBox
will accpet the input but will not put it in the listbox.  0 means no limit.

MaxCount - Integer : Maximum number of items allowed
in the listbox.  0 means no limit.

* Custom Runtime Properties *

ListBoxItemIndex - Integer : Current index of the listbox

ListBox - TListBox : gives access to the Listbox if
anything I have provied is not sufficient.

ListBoxChanged - boolean : whether the Listbox has changed.

* Events *

OnAddClick - the add button has been checked

OnDeleteClick - the delete button has been checked

OnListBoxDoubleClick - the listbox has been double clicked for editing.

*Custom Methods*

GetCurrentString - String : gets the currently selected string
in the listbox, if any.

Delete : deletes the current string in the listbox.
