|
⇤ ← Revision 1 as of 2013-10-30 21:34:39
Size: 1641
Comment: Added page for SDL_ShowMessageBox( ) using content from headers.
|
Size: 1645
Comment: Added link to SDL_MessageBoxData (Feedback 2014-01-24).
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 24: | Line 24: |
| ||'''messageboxdata'''||the SDL_MessageBoxData structure with title, text and other options|| | ||'''messageboxdata'''||the [[SDL_MessageBoxData]] structure with title, text and other options|| |
DRAFT |
SDL_ShowMessageBox
Use this function to create a modal message box.
Contents
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.
