SV: Re: wxGTK, wxLogGui, mouse capture, ...
Robert Roebling
robert at roebling.de
Tue Jul 3 02:18:19 PDT 2007
Arne Steinarson wrote:
> 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;
You are right,
Robert
>
>
>
> --- 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
> >
More information about the wx-users
mailing list