ComboBox.AutoComplete Bugs Mac & Windows

It seems there are some bugs in the combo box, or at the very least undesirable difference between mac and windows. On Linux it seems to work as I would expect.

On windows type in part of an item then select an item from the drop down list using the arrow keys. Finally press enter and tab to another field.
The result is that the text and listindex change but the change event never fires.

On Mac type in part of your selection then tab to another field.
The result is that the listindex is set to -1 even though a valid item has been selected.

It seems deceptive to allow the listbox to display as though a selection has been made with out firing the proper events.

<https://xojo.com/issue/45959>

On windows I tried to subclass ComboBox and fix these bugs but it’s very dificult because when AutoComplete is set to on it becomes imposible to set SelStart and SelLength.

Here are the specific problems I’ve noticed:

  1. When AutoComplete is set on in the IDE it become imposible to use the SelStart and SelLength, even if AutoComplete is turned of by code.
  2. If AutoComplete is turned off in the IDE it is impossible to turn it on using code.

I’ve attached a sample project to the feedback case to demonstrate.