Oh, just noticed that mouse_left isn´t checked inside the panel_clicked function. Perhaps you could put a decision structure to check if mouse_left is true and then shift bmaps...