IupMessageAlarm
Shows a modal dialog containing a question message, similar to IupAlarm. It simply creates and popup a IupMessageDlg with DIALOGTYPE=QUESTION.
Creation and Show
void IupMessageAlarm(Ihandle* parent, const char *title, const char *message, const char* buttons);
parent: parent dialog, can be NULL.
title: dialog’s title, can be NULL. It can be a
language pre-defined string without the "@" prefix.
message: text message contents. It can be a language
pre-defined string without the "@" prefix.
buttons: list of buttons. Can have values: "OK",
"OKCANCEL", "RETRYCANCEL", "YESNO", or "YESNOCANCEL".
Returns: the number of the button selected by the user (1, 2 or 3).
Notes
If parent is NULL, the title defaults to "Attention!" and tries the global attribute "PARENTDIALOG" as the parent dialog.
The dialog is shown centered relative to its parent.
Examples
| GTK | Qt | Win32 | macOS |
![]() |
![]() |
![]() |
![]() |
See Also
IupGetFile, IupListDialog, IupAlarm, IupMessage, IupMessageDlg



