Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2013-10-30 21:34:39
Size: 1641
Comment: Added page for SDL_ShowMessageBox( ) using content from headers.
Revision 2 as of 2014-09-23 20:30:01
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.

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

None: SDL_ShowMessageBox (last edited 2014-10-10 19:59:52 by PhilippWiesemann)

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