Well, you could check the mouse position to check which button has been clicked. But normally such a crude workaround shouldn't be necessary, because normally the buttons should work! Maybe, if you show more of your code, we will be able to see where the error is.