Hi,

I want to create a combo box that has a visible edit box in which I can type
words, and a listbox that can be opened and that can hold the typed words
in.
And I want that each time when I type a part of a word, it should select the
first match from its list and copy it to the edit box.

I have seen that the Combobox object has a method named SelectString that
could get the first match and copy it into the textfield, but I don't know
how to run this method, because the combo box doesn't seem to have any event
that could fire it after each char is typed.

I have tried -onChar, -onKeyDown, but they are not available for this
object.

I have seen that they are available in case I use the -dropdownlist => 1
option, but in that case the combo box doesn't allow typing words in the
edit field but only selecting words from the list.

Please tell me how can I do that, and one more thing... please tell me how
the Combobox works.
If the combo box is a simple one that doesn't have the -dropdownlist option
set, I guess that the edit box is always shown on the screen. But can the
list box be displayed? I am not sure this type of combo box has that button
with the "down triangle" button that can be used for displaying the list.
Is it possible to have an editable  combo box that also can display the list
box?

Thanks for anything that can help me.

Teddy


Reply via email to