• Post Reply Bookmark Topic Watch Topic
  • New Topic

editable combo box  RSS feed

 
sharan vasandani
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

can any one tell me how to distinguish whether the text entered in a editable combo box is edited one or selected one from the list.
 
Brian Cole
Author
Ranch Hand
Posts: 937
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sharan vasandani:
how to distinguish whether the text entered in a editable combo box is edited one or selected one from the list.


The getSelectedIndex() method returns -1 if the user typed in something which is not in the list, but it won't tell you if the user typed in something which is in the list. Perhaps it's close enough for your needs?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!