Yes as far as I remember button_number starts with 1, but you can check it out easily with some test function.

The panel parameter is just another parameter, you don't have to use it, but you can use it and identify a panel based on that parameter I think.