A button event function uses following parameters
param1 : number of the button ( 1st , 2nd ... button of a panel )
param2 : Pointer to the PANEL which the button is defined in

Look into the button page of the manual for more information

muffel