why not using pan_setbutton ?

you can modulate the bmap of a button with it wink