|
-
June 2nd, 1999, 03:12 PM
#1
CComboBox and CBS_SORT
I want to have the combo box feature that automatically selects the first item that matchs the character you passed in.
For example if the combo box had "1","2","3","4" in it and the user typed in "3" the combo box would select three.
But whenever I set the combo box as a drop list and set the CBS_SORT property it turns this feature off. It seems to work the first time the character is pressed but will not select an item the 2nd, 3rd etc... time.
Is there any way to have both CBS_SORT and this selection property on at the same time, or do i have to manually sort the items first.
-
June 7th, 1999, 06:29 AM
#2
Re: CComboBox and CBS_SORT
It is not possible to get your required feature if the style is DropList and the Sort feature is turned on. It will be possible only if the Sort feature is turned OFF. One way out could be as you figured out : Sort the values and then put them into the combo-box. I suppose you might not be frequently changing the combo-box options(if at all)- so, it should not be an overhead.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|