in reply to TextCtrl and Popupwindow ?

I think its because wxPopupWindow is
A special kind of top level window used for popup menus, combobox popups and such.

Others think this behaviour is a bug
popupwindow site:wxwidgets.org
[ 1067399 ] wx.TextCtrl on wx.PopupWindow