IupMessageAlarm
Shows a modal dialog containing a question message, similar to IupAlarm. It creates and pops up an IupMessageDlg with DIALOGTYPE=QUESTION.
Creation and Show
int 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 title is NULL, it defaults to "Attention!". If parent is NULL, the global attribute "PARENTDIALOG" is used 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



