SV: Re: wxGTK, wxLogGui, mouse capture, brings down Gnome

Vadim Zeitlin vadim at wxwidgets.org
Mon Jul 2 15:53:31 PDT 2007


On Mon, 2 Jul 2007 13:12:50 +0200 (CEST) Arne Steinarson <asteinarson at yahoo.se> wrote:

AS> Calling ungrab in wxDialog::ShowModal solves the
AS> problem of the whole of Gnome freezing (wxLogDialog
AS> derives from wxDialog). 
AS> 
AS> However, the application does not get a notification
AS> that capture was lost. One should send a
AS> wxMouseCaptureLostEvent to the app when releasing the
AS> capture in this way.

 Yes, absolutely.

AS> How about a:
AS>   static wxWindowGTK::ReleaseCaptureInternal 
AS> 
AS> which can be called from wxDialog::ShowModal that
AS> would emit wxMouseCaptureLostEvent to the app?

 Unless there is some way to make GTK+ do something automatically on its
own when a modal dialog is shown this seems like a good idea to me.

 Regards,
VZ
-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/







More information about the wx-users mailing list