Syntax
int GtMsgBox( const char *title, const char *text, const char *buttons[] );
Arguments
title is the dialog title.
text is the message body.
buttons is an array of button labels ending in NULL. Pass NULL for the default OK button.
Return value
The one-based index of the selected button, or 0 if the driver supplies no selection.
Description
Shows a dialog through the active backend. Button availability depends on the driver.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
const char *buttons[] = { "Continue", "Cancel", NULL };
int choice = GtMsgBox( "Inventory", "Continue?", buttons );
printf( "Choice: %d\n", choice );
return 0;
}