Solved

Combo Box: Selection by character entry

Posted on 1998-12-03
4
289 Views
Last Modified: 2013-11-20
CComboBox description says " ... if the combo box has the drop-down list style, the user can type the initial character of one of the items in the list, and the list box, if visible will highlight the next item with that inital character".  By typing a second character within a short intervial, I have observed that items having the same first character can be selected.   For instance, if the list has the entries "OH" "OK" "OR", typing "O" and then "R" (without pausing) will select "OR".   But if the list has entries "II" "III" "IV" "V", typing "I" and then "V" (again without pausing) selects "V", not "IV" as I wished.  Typing "I" and then "I" selects "III", not "II".  I have not been able to locate the code that does the selection.   Where is it?  How can I fix this anomalie of combo box item selection by key stoke of the first two characters?
0
Comment
Question by:tkbursch
  • 3
4 Comments
 

Expert Comment

by:madhav102398
Comment Utility
hi tkbursch,

i have tried a ComboBox with the items you have specified.
if the ComboBox is of Drop List style and the ComboBox is sorted, then your second example of I, II, III, IV, V even works. But if your ComboBox is not sorted the ComboBox supports only the first character entry, not more than that. But it supports for more than one character entry only if it is sorted.

madhav
0
 

Expert Comment

by:madhav102398
Comment Utility
I mean, ComboBox supports for more than one character entry, only when ComboBox is sorted.
0
 

Author Comment

by:tkbursch
Comment Utility
You sure hit the nail on the head.  Fixed my problem
Thanks for your help.
0
 

Accepted Solution

by:
madhav102398 earned 100 total points
Comment Utility
hey tkbursch,

nice to know i was helpful
i am beginner too

madhav
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
configuration management 2 99
move a line in eclipse 3 60
fizzArray  challenge 1 47
firstChar challenge 13 82
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now