ComboBox does not send keyboard and no event click the menu drop-down.

I use a ComboBox to search in my application. The application is a periodic table, then the user will be able to search by name of element, atomic number or a symbol. The ComboBox control is working very well, I just have two questions that I was wondering if someone could lead me in the right direction. The first problem is that, when a user clicks the ComboBox for a search entry, the keyboard does not dispatch. The user must use the native swipe gesture to display the keyboard. This isn't a huge problem, but I would really like to work for when the user clicks the ComboBox keyboard is distributed. IV ' e looked in this and concluded that it should work, ComboBox with a property TextInput keyboard should appear, but it doesn't. I also discovered that it is impossible to show/hide the keyboard with the code. I use FB 4.5 and 4.5 Flex and the most recent SDK Tablet from BlackBerry. Y at - it a bug or something?

Also my other question is once the user starts typing in the search, the filter works great and the drop down displays all of the possibility. But my only problem is the user cant just click and the item in the drop-down menu. For example when the user types "A" all items that begin with a show upward in the drop down menu. The user cannot click on an element. The only way that the element can be selected is if the user continues typing the word until it is highlighted as the only option and then enter hits. This too is not a huge problem, but I like it to work so that if the user types 'A' they can do scroll down the menu and select the item they want. IV also looked into this and can't seem to find anyway to drop down the combobox list have a click event. I'll put a code later that you can see what I mean better, but for now its kind of a general questions. I use FB 4.5 version release and flex 4.5 with the new SDK of BBT. If someone can point me in the right direction, or send me any article that would be GREAT. Thanks in advance!

It is probably easier than you think:

  1. Create a text input control
  2. Add event listeners when the control is changed ('change')
  3. Maintain an internal table of valid matches
  4. On the change event listener, browse each item and make a match that makes sense.  For example, to cut spaces beginning and end and do a string comparison of tiny out based on the length of a text entry field.  For example, if the user types "vel", which would correspond to "Developer" and "velcro".
  5. Create a list control that is displayed once the person begins to type.  Place it under the control of text entry.  Use the local to global changes in coordination and the size of the width of the list of the same width of the text input.
  6. # 4, dump all the data of the list data provider and add items to it based on string matching.  If no match or the text input text is empty/void/null, do not show the list.
  7. If the user selects an item in the list, hide the list, enter the selection to text entry and then send an event that the entry is "finished".
  8. Listen to the event "full" text of entry to perform what you wanted.

Of course, if anyone can suggest how to get the Combox to work, go ahead.  I have just a habbit to create controls to achieve the appearance and the behavior I'm looking for.

Good luck.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for