Thanks, the lines were copied from my source code.
What I was trying to find is where I was going wrong. It looks like my system has wxwidgets 2.8 which is the main source of the problem. Apparently it is a good idea to follow the same version of docs and code...
I ended up switching for now from textboxes to comboboxes to try to implement my own autocomplete that way. However if I setfocus to the combobox, it selects the text which makes it very hard to change the combinations in it. Do you know of a good way to do autocomplete with wxPerl and wxwidgets 2.8?
Edit: Never mind. I found that the issue was that the best thing to do was to avoid setting the value, and instead process the items on the list.