ComboPopup (VListBox) always seems to steal focus from ComboCtrl, really frustrating

anyone have experience with ComboCtrl and ComboPopup with a VListBox?

whenever I call Popup() the VListBox always seems to steal the focus, even though I’m not apparently calling SetFocus() in it’s OnPopup method.

And I can’t seem to SetFocus() back to the ComboCtrl.GetTextCtrl() from the function I called Popup() in.

My intention is to have a dropdown with all my choices, when I type into the textbox part of the dropdown, I want the choices to filter actively. Now the popped up VListBox takes the focus, such that I can press up or down on the keyboard and select entries up and down in the list. I can’t however press left or right and move the caret in the textbox. I tried setting up a NavigationKeyEvent to the TextCtrl but it didn’t work.

if event.GetKeyCode() == 314:

nav = wx.NavigationKeyEvent()

print repr(self.GetComboCtrl()), ‘****’, type(self.GetComboCtrl())

print repr(self.parent), ‘****’, type(self.parent)

print repr(self.parent.GetTextCtrl()), ‘****’, type(self.parent.GetTextCtrl())

print repr(self), ‘****’, type(self)

nav.SetEventObject(self.parent.GetTextCtrl())

nav.SetCurrentFocus(self.parent.GetTextCtrl())

self.parent.GetParent().GetEventHandler().ProcessEvent(nav)

I looked into the ComboTreeBox source and see it isn’t using ComboPopup or ComboCtrl, but rather a Frame and ComboBox. Is this the route I’ll have to take? Since I essentially don’t want the focus to leave the TextCtrl, and only do stuff to the popped-up VListBox on up, down, and enter (move the selection up or down, and enter would use the currently selected item to popuplate the TextCtrl).