PopupTransientWindow problem

No, I think this is just a crisis of expectations: you're expecting
wxPopupTransientWindow to do something it simply was not designed to do.

A transient window is intended for tool tips or balloon help windows: it
displays some static information, and closes as soon as anything
interesting happens, including mouse clicks. It was not designed to
handle complicated multi-button UI, such as you are attempting.

By watching the window messages using spyxx, it looks to me like
wxPopupTransientWindow does a mouse capture, so it grabs all mouse clicks.
Under normal conditions, ANY mouse click anywhere will cause the window
to come down. That's the normal use of a transient window. There must be
some special casing for the first button in a transient, but when you
click on button B, the popup window receives it because of the capture,
and takes itself down.

What you want is a normal window, not a transient window. Just create a
new frame and populate it to your heart's content. wxPopupTransientWindow
does not provide anything useful for you, and it's going to interfere with
your UI plans.

ยทยทยท

On Mon, 8 Dec 2003 14:54:51 -0000, Richard Cooper <richard@artsalliance.co.uk>

I'm having a problem with wxPopupTransientWindow closing prematurely. In the
example I've provided below clicking on the open button opens a
wxPopupTransientWindow with 3 buttons in it. If I try to click buttons B or
C then the wxPopupTransientWindow disappears without the EVT_BUTTON handler
being run. If I click on button A first (The one with the focus, don't know
if that's relevant) then the handler runs and I can then click on any of the
buttons as often as I like without the window closing.

I'm running wxPython 24.24u on Python 2.3.2 on WinXP

Any thoughts? Should I submit this as a bug?

--
- Tim Roberts, timr@probo.com
  Providenza & Boekelheide, Inc.