[wxPython-users] Catching Back mouse button events

Robin Dunn robin at alldunn.com
Mon Sep 25 09:31:10 PDT 2006


Eli Golovinsky wrote:
> I have a Back and Forward mouse buttons on my mouse that act like the 
> Back and Forward buttons in the browser where it's applicable.
> I would like to be able to bind events to those buttons in a wx program.
> 
> The buttons seem to generate a WM_XBUTTONDOWN under Windows 2000/XP, but 
> looking in the wxWidgets code I didn't find a reference to them.
> 
> Has anyone ever done this? Would I need to hack on wxWidgets to get it 
> done?

It would be nice to have support for additional mouse buttons in wx, but 
if you don't feel like doing that much work you can probably do it just 
by using PyWin32 and hooking the WndProc.

http://wiki.wxpython.org/index.cgi/HookingTheWndProc

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list