SV: Re: wxGTK, wxLogGui, mouse capture, ...

Arne Steinarson asteinarson at yahoo.se
Tue Jul 3 01:52:00 PDT 2007


You have state for mouse capture in gtk/window.cpp.
Releasing the capture in gtk/dialog.cpp you'd have to
manipulate globals of another file (bad practice) or
leave incoherent state behind.

Regards
// ATS

Mouse capture state in window.cpp:

// mouse capture state: the window which has it and if
the mouse is currently
// inside it
static wxWindowGTK  *g_captureWindow = (wxWindowGTK*)
NULL;
static bool g_captureWindowHasMouse = false;



--- Robert Roebling <robert at roebling.de> skrev:

> Arne Steinarson wrote:
> 
> > I think in this regard (popping up dialogs in any
> > situation), that Windows is more robust than GTK.
> Does
> > wxMSW do some special handling or does Windows
> handle
> > this by itself (release capture message
> triggered).
> > 
> > My suggestion is to put the method in wxDialog
> (for
> > GTK) and not in wxDialogBase.
> 
> I don't know what you need that 
> static wxWindowGTK::ReleaseCaptureInternal
> for. Just release the mouse and send the event.
> Especially if the patch is for the 2.8 branch,
> where adding a symbol is not desired,
> 
>   Robert
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail:
> wx-users-help at lists.wxwidgets.org
> 
> 


- - -


      Låt vårkänslorna spira!
Hitta din tvillingsjäl på Yahoo! Dejting: http://se.meetic.yahoo.net




More information about the wx-users mailing list