ComboBox AutoLookup behavior

Here's what we're experienceing in a part of our app written with Delphi 6:

In a TComboBox that has many items in its list, a user can jump directly to a selected item if they type in the text of the desired item **really fast**   This typicak "auotLookup" behavior really does work, but you've gotta type quickly.  As you might guess, we have annoyed users who complain that if they pause at all while keying in the desired "jump to" text, to combobox loses track of thier request:

Example:  user wants to do an "autoLookup" of list member RL357 in the comboBox

if user types in RL357 extremely fast without pausing...the combo finds RL357 just fine
if a user types in RL, then pauses for a split second, then types 357...the combo forgets about the RL and jumps to the items in the list the begin with 357 instead.

I'm hoping the TComboBox has some "window of typing time" setting that I can adjust, but I can't find anything like that.  Are we stuck with the 'fast-typing' workaround or can the combox be altered to accomodate slower typing during autoLookup?

Thanks for  your thoughts!
Who is Participating?
Heres a solution, its not terribly elegant but it does work.

put a timer on the form

set the timer.enabled to false and the timer interval to the maximum amount of time you want your users to have between keystrokes

create a form level variable
    FTyped: string;

add this code

procedure TForm1.Timer1Timer(Sender: TObject);

procedure TForm1.ComboBox1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);


I understand this is a pain bohiggy, but I personally havent found any some of time property for the autocomplete.
I hope someone has a work around for this issue as I would be interested too.
TheRealLokiSenior DeveloperCommented:
I can't seem to recreate this. what settings are you using in the combobox? e.g style and sorted. is the drop down list displayed when you do this or not.
I'm just not getting it, it's working as expected
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.