Re: combobox autocomplete - DROPDOWNLIST
From: Aaron Smith (thespirit-1-_at_smithcentral.net)
Date: 11/15/04
- Next message: Rudy: "Re: Newbie Procedure Question"
- Previous message: Schoo: "Re: Form won't play nice with rtb"
- In reply to: Bernie Yaeger: "Re: combobox autocomplete - DROPDOWNLIST"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 15 Nov 2004 15:32:12 GMT
That would be awesome!
Bernie Yaeger wrote:
> Hi Aaron,
>
> Tx for restoring my sanity!
>
> Actually, I have already played around with the idea of using a global
> string, exiting in the keyup event when tab, enter, arrows, etc and the
> findstring with the global string. I then added a timer so that the global
> string is cleared after a 2 second interval (so if you enter 'com' and wait
> too long, 'p' with start again and find, say, 'paper'), because if you don't
> clear the string the user can't make a second selection.
>
> I may try to develop this into a custom control. If I do, I will email you
> and let you know what I've done.
>
> Bernie
>
> "Aaron Smith" <thespirit-1-@smithcentral.net> wrote in message
> news:O%1md.28979$Qv5.11097@newssvr33.news.prodigy.com...
>
>>Bernie,
>>
>>I know exactly what you want and why you want it, and no the example he
>>gave is not it. However, if you subclass it, and then grab the keydown
>>event and build your own string while the control has focus, you could
>>probably do some sort of manual find on it to get the one they want. I
>>will need this as well once I get more of my current project completed...
>>
>>Aaron
>>
>>Cor Ligthert wrote:
>>
>>>Bernie,
>>>
>>>That is what in my opinion that autocomplete combobox would do what Ken
>>>has showed you.
>>>
>>>The difference between a combobox and a listbox is that you may enter and
>>>use text in a combobox that is not in the listcontrol.
>>>
>>>Therefore I came with that idea about checking first with findstringexact
>>>
>>>Cor
>>>
>>>
>>>
>>>>Findstringexact won't solve the problem.
>>>>
>>>>Let's say the combobox contains
>>>>
>>>>twist
>>>>soccer player
>>>>coral
>>>>comment
>>>>complete
>>>>
>>>>What the user wants is to enter 'c' and get 'comment'; enter 'o' and stay
>>>>on 'comment'; enter 'm' and stay on 'comment'; enter 'p' and go to
>>>>'complete'.
>>>>
>>>>This is the way dropdownlist comboboxes used to work - for at least the
>>>>last 10 years before .net.
>>>>
>>>>Thanks for any help.
>>>>
>>>>Bernie
>>>>
>>>>"Cor Ligthert" <notmyfirstname@planet.nl> wrote in message
>>>>news:uUxUFTuyEHA.2016@TK2MSFTNGP15.phx.gbl...
>>>>
>>>>
>>>>>Bernie,
>>>>>
>>>>>
>>>>>
>>>>>>You are easily one of the most knowledgeable and helpful people on this
>>>>>>ng. So it is that much more disappointing that you didn't read what I
>>>>>>said - THIS DOESN'T WORK WITH A DROPDOWNLIST COMBOBOX!
>>>>>
>>>>>If I understand you well, why than not make it your own by setting it in
>>>>>combobox mode and doing a findstringexact when the user has selected an
>>>>>item.
>>>>>
>>>>>When it is not already in the combobox you can just ignore it, or even
>>>>>ignore it with a message.
>>>>>
>>>>>Maybe this helps, just a try?
>>>>>
>>>>>Cor
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>--
>>---
>>Aaron Smith
>>Remove -1- to E-Mail me. Spam Sucks.
>
>
>
-- --- Aaron Smith Remove -1- to E-Mail me. Spam Sucks.
- Next message: Rudy: "Re: Newbie Procedure Question"
- Previous message: Schoo: "Re: Form won't play nice with rtb"
- In reply to: Bernie Yaeger: "Re: combobox autocomplete - DROPDOWNLIST"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|