capturing off-frame mouse events
Alex Bligh
alex at alex.org.uk
Fri Aug 4 12:30:22 PDT 2006
Chris Haynes wrote:
> For a presentation drawing tool, I'd like to capture all mouse events,
> not just those that occur inside my wx app frame (or drags that begin
> inside the frame). I've figured out how to draw outside the frame with
> ScreenDC, but also need the mouse events.
>
> For my application the app outside the frame won't respond to the
> events, so I don't care if my app consumes them or not, I just want to
> get them.
>
> wxPython2.6 under XP. I know this is possible in general (but maybe not
> with wx), because various event logging software manages it.
Can you just put a frame-less wxFrame in full-screen mode over the
whole drawing, and set its background to be transparent? (doesn't
work on GTK, may work on XP). You may have to set it to be
/really/ transparent (using the XP API - see how wxAUI used
to do it on 2.6 at Kirix.com - or the 2.7 wxWidgets SetTransparent
API).
Alex
More information about the wx-users
mailing list