Added result for messageboxes

It is now possible to get a result from a messagebox, so you can tell
which button was clicked.