And If you want to add Event on the button you should use
"pan_setevent" function

In my project (see example in previous post) i use this code:

pan_setevent(Start_pan,_VAR(3),_VAR(1),(EVENT)Change_Mode);
You can read more about this function in acknex help