Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Behavior in Combobox as find as you type

Status
Not open for further replies.

cparralesl

Programmer
Jan 27, 2002
118
NI
Hi everyone,

This thread thread702-1228727 has been very useful for me, it works great; But i don't know how to control a behavior. When it displays the filtered list, the user is not able to select an ítem from that list, because combobox takes the first ítem and close the dropdown as soon as the user moves down/up using directionals keys (Up, Down). The only way to select an ítem from the filtered list, which is not the first one, is using the mouse.

Has someone overcome on this behavior?

I appreciate the help abou it.

Best regards

CParrales

Cesar Humberto Parrales
Application Support
 
So what happens if you keep "using directionals keys (Up, Down)" ?
If you keep clicking Down, Down, do you get to your desired selection?

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.
 
So what happens if you keep "using directionals keys (Up, Down)" ?
What happens is that Combobox selects the fisrt item of the filtered list always, then the filter is based on that selection.
The behavior i desire is that Combobox should let me moves through the filtered list, until i press the "[Enter]" key to select an item.​

I really appreciate the help you can give me.

regards,

CParrales


Cesar Humberto Parrales
Application Support
 
You still did not answer my question.
If you have your filtered list in the combo box, and the first entry is shown, what happens when you hit 'Down', 'Down' (arraow)? Do you 'select' second entry, and then third 'entry' in your combo box?

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.
 
What happen after hit down arrow is that combobox takes the first item of the filter list as the new filter criteria, so the new list filtered has one record only.

Cesar Humberto Parrales
Application Support
 
You may try - in Change and Click event for your combo - to disable the filtering capabilities. Introduce some Boolean variable and toggle it on and off to filter (in Change event) and not to filter (in Click event).

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.
 
Assuming you are using the last code in that thread.

Expanding on Andy's thought, you could use one of the on key events to trap the cursor keys and set the a boolean that causes the filter to skip on the change event...

Or perhaps what you really want is to filter on the current and after update events and have a button to unfilter (double click is another obvious choice)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top