MessageBox return and different buttons

Issue #48 new
Benjamin Hoffmann created an issue

It will be nice if we can set differents buttons for the messagebox : Yes, No, Cancel, Retry, Abort, ... And catch the messagebox returns depending on the clicked button.

Comments (1)

  1. Joseba Echevarria García repo owner

    SDL does provide an API for this: https://wiki.libsdl.org/SDL_ShowMessageBox

    It should be possible to implement some basic functionality like you suggest, where the user would provide an array of strings and the id of the button would be returned.

    I'll have a look at it. Thanks for your suggestion.

  2. Log in to comment