I'm not sure if that is your problem, but you should consider that buttons only work in the size of the panel that is by default defined by the size of its bitmap. So if your buttons are outside your bitmap (or if you have none, but I see that you do have one), then you have to increase panel.size_x and size_y to cover the whole area the buttons are in.