If you want to change a button image when pressing another button, you can call the pan_setbmap function in the button event.

http://manual.conitec.net/pan_setbmap.htm