Another way is (as i recall) to set it's Style (in Properties) to "csDropDownList".......
It COULD be one of the other Styles, try another if i'm remembering wrong, one of them does the job!
Say the character 'X' should be present one time and only once.
That means I do not want the user to be able to input a second 'X' character. And I do not want him (or her) to delete this 'X' character.
The logic is simple but I just need to know which character the user is trying to add or delete. In other words I want to know the cursor position in the combo (or edit) box.
How do I know this postition ?
Well well.....what do You know....tried a little and it turns out that ComboBox->SelStart actually corrospond to the location where You put in the keypress when you input manually. So catch the keypress event and do the woodoo You do so well using the SelStart.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.