I have a ComboPopup (a generic combobox). In this ComboPopup I create a PopupTransientWindow (after a mouse-click into the ComboPopup).
My problem: Once I have popup’ed the PopupTransientWindow, I cannot close, maximize or minimize the application window and the mouse cannot control the other ui-elements. It seems that it has something to do with the fact that I create the PopupTransientWindow from a ComboPopup, because when I create the PopupTransientWindow in the frame (commented out in the sample-app), it works.
i found the idea of the ComboCtrl with a transient popup interesting, so i tried if i could get it working. I used the wx-Demo as base. Attached is a script with three versions:
a comboctrl with transient window as popup
a button with transient window popup
a combo ctrl with a popup panel and there a right click will show the transient popup
1 and 2 works. Number 3 gives an error when trying to open the combo popup a second time. But only when the combo popup were closed before the transient popup were closed.
This is the error message:
Traceback (most recent call last):
File “E:\Programmierung\transientpopup2.py”, line 80, in GetAdjustedSize
return wx.Size(200, 200)
File “C:\Program Files (x86)\Python27\lib\site-packages\wx-2.9.4-msw\wx_core.py”, line 941, in init core.Size_swiginit(self,core.new_Size(*args, **kwargs))
wx._core.PyAssertionError: C++ assertion “Assert failure” failed at …..\src\common\wincmn.cpp(3197) in DoNotifyWindowAboutCaptureLost(): window that captured the mouse didn’t process wxEVT_MOUSE_CAPTURE_LOST
Am Samstag, 11. Mai 2013 14:59:26 UTC+2 schrieb ErwinP:
Hello,
I have a ComboPopup (a generic combobox). In this ComboPopup I create a PopupTransientWindow (after a mouse-click into the ComboPopup).
My problem: Once I have popup’ed the PopupTransientWindow, I cannot close, maximize or minimize the application window and the mouse cannot control the other ui-elements. It seems that it has something to do with the fact that I create the PopupTransientWindow from a ComboPopup, because when I create the PopupTransientWindow in the frame (commented out in the sample-app), it works.