Solved

Combo Box: Selection by character entry

Posted on 1998-12-03
4
291 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
ID: 1325740
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
ID: 1325741
I mean, ComboBox supports for more than one character entry, only when ComboBox is sorted.
0
 

Author Comment

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

Accepted Solution

by:
madhav102398 earned 100 total points
ID: 1325743
hey tkbursch,

nice to know i was helpful
i am beginner too

madhav
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
repeatSeparator  java  challenge 13 56
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 77
Can not remove SSL certificate on iPhone 6 - iOS10.2 12 286
Excel file not created as expected 7 51
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

18 Experts available now in Live!

Get 1:1 Help Now