Like set-grab-key-function, but for mouse events.
wx:keymap% object, a wx:object% object, and a wx:mouse-event% object -- that returns a boolean
See set-grab-key-function.