Search the Community
Showing results for tags '_GUICtrlComboBox_AutoComplete'.
I was playing around with _GUICtrlComboBox_AutoComplete example code and wanted to test using the enter key in the combobox. I added an accelerator key to catch the enter key but it wasn't being picked up so I tried putting a sleep in GUIGetMsg loop and that worked but then when you click on the X close window button it isn't picked up. If I reduce the pause in the loop it get more responsive for closing the window but misses some of the enter key presses. I have an alternative using _IsPressed which works but I like the idea of the accelerator key just working in the one window.
Is it possible to have more than one combobox using _GUICtrlComboBox_AutoComplete with separate item lists? Say I wanted a GUI with two combo's, one with fruit (apple|orange|tomato) and one with vegetables (celery|Turnip|carrot) and wanted both of them to autocomplete. Is this possible? I like the way the _GUICtrlComboBox_AutoComplete example works, but I am having difficulties understanding the code :/ http://www.autoitscript.com/autoit3/docs/libfunctions/_GUICtrlComboBox_AutoComplete.htm my first attempt: #include <GuiComboBox.au3> #include <GUIConstantsEx.au3> #include <