I used to get Invalid Argument when I used to set the bitmap paramter in pan_setbutton to NULL.Hence I did bmap_create.
So what if I create a BMAP * abc = bmap_createblack (..) and use it as parameters(Actually I want to hide that button ) and sys_free at the end of the game