Wiki Page Content

Revision 2 as of 2014-09-23 20:30:01

Clear message

DRAFT

SDL_ShowMessageBox

Use this function to create a modal message box.

Syntax

int SDL_ShowMessageBox(const SDL_MessageBoxData* messageboxdata,
                       int*                      buttonid)

Function Parameters

messageboxdata

the SDL_MessageBoxData structure with title, text and other options

buttonid

the pointer to which user id of hit button should be copied

Return Value

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

This function should be called on the thread that created the parent window, or on the main thread if the messagebox has no parent. It will block execution of that thread until the user clicks a button or closes the messagebox.

Version

This function is available since SDL 2.0.0.


CategoryAPI, CategoryVideo

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit