Switch to using a dialog subclass and make sure to call dlg.ShowModal() .
That should work on all platforms.
Yes, that's what I tried to do in the first place. In my application, I
dismiss the popup window programmatically, not with a button. It seemed as
if dialogs were designed to be used only with buttons, but perhaps I missed
something. For example, MessageDialog would be perfect, but it doesn't
seem possible to create one without a button.
Even if I did not implement the popup window the right way, doesn't it seem
strange that the mouse capture changes when some other application covers
the application?
This is a UI feature of the OS to prevent applications from locking up
the machine. Use a modal dialog instead of the mouse capture hack, or
disable your application in a different way. This is not new behavior.
···
On 1/4/07, Jeffrey Barish <jeff_barish@earthlink.net> wrote:
Josiah Carlson wrote:
> Switch to using a dialog subclass and make sure to call dlg.ShowModal() .
> That should work on all platforms.
Yes, that's what I tried to do in the first place. In my application, I
dismiss the popup window programmatically, not with a button. It seemed as
if dialogs were designed to be used only with buttons, but perhaps I missed
something. For example, MessageDialog would be perfect, but it doesn't
seem possible to create one without a button.
Even if I did not implement the popup window the right way, doesn't it seem
strange that the mouse capture changes when some other application covers
the application?
--
Jeffrey Barish
Even if I did not implement the popup window the right way, doesn't it seem
strange that the mouse capture changes when some other application covers
the application?
Strange yes, but normal and expected. In 2.8 there is an EVT_MOUSE_CAPTURE_LOST event that you can catch to receive notification when this happens.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!