EditStat
--------


I apologize for poor English speaking, I'm French.

This component was quickly made and I give it without any warranties.

I wrote it to allow fast keyboarding. You need to have first the TabListBox
component (TABLIST.ZIP) by David Baldwin (Compuserve, 76327,53), since the unit
"Valeurs" uses it.

Editstat allows to type only a few letters in an editbox: if these letters are
matching the beginning of several strings, a dialog box ("Valeurs) will appear
to choose the right one (if you cancel, you will be back in the edit box).

If no match is found, the focus remains in the same place.

When the choice is accepted, or if one string only matches, an associated
string appears in a Static control and the focus moves. This Static component
is to be specified in the "StaticAffiche" property.

The check is made only if StaticAffiche is specified.

The check is made when exiting the edit box (caution, the "exit" event is not
called if an OK button is pressed or in some similar cases). When a choice is
accepted, no more check is made for this component, (the last string is stored),
until you type something in the same box.

Properties
----------

Lines is the major property. You have to give in each line the abbreviation for
fast keyboarding, type CTRL+I, and the complete string. You can too fill Lines
at runtime. However, if you don't type CTRL+I, the check is made, but
StaticAffiche cannot be empty.

StaticAffiche is the other property. It refers to one TStatic component where
the second string will appear.

See the TabListBox's help for the TabPercentages property.

Installation
------------

You must have installed Tablistbox (see TABLIST.ZIP).
Compile VALEURS.PAS.
Finally, install EditStat.

It's a very little component, but I find it useful. You are free to modify the
source. I will appreciate any suggestion.

Many thanks to David Baldwin, for the TabListBox component.

MB.








