Dear wxPython Users,
Long time no see .
I have noticed a very peculiar - and fantastically annoying - behavior of wx.adv.OwnerDrawnComboBox (and wx.ComboCtrl as well) when embedded in a AUI (wx.lib.agw.aui or wx.aui) floating pane that can be closed and re-opened (hidden via the “x” close button in the floating pane and shown again by some other action).
Please consider the sample app attached to this message. After you start it up:
-
Click on the “Launch” button: this will show a AUI floating pane containing a simple OwnerDrawnComboBox. Notice that you can interact with the combobox and the dropdown works all right
-
Close the floating pane via the “x” button. This will not destroy the floating pane as it doesn’t have the DestroyOnClose() flag set
-
Click again on the “Launch” button: The AUI floating pane will be re-shown again. Notice that the OwnerDrawnComboBox does not react anymore - i.e., no dropdown is shown, it’s unusable.
This is on Windows 10 64 bit, Python 3.9.10 wxPython 4.2.1a1.dev5553+986d79b9 msw (phoenix) wxWidgets 3.2.2 - but it happens also with the regular wxPython 4.2.0.
It happens with wx.lib.agw.aui and wx.aui as well.
Any suggestion on what is going on is most welcome . Thank you.
Andrea.
ownerdrawn_combobox.py (4.0 KB)