XMCREATEERRORDIALOG(3)
β¨ NAME β¨
okay so bestie, meet XmCreateErrorDialog β she's the MessageBox ErrorDialog convenience creation function π
(yes that's the whole name, she's fancy like that)
πΈ SYNOPSIS πΈ
#include <Xm/MessageB.h>
Widget XmCreateErrorDialog(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
π¦ DESCRIPTION π¦
XmCreateErrorDialog is a convenience creation function β meaning she does a whole bunch of setup for you in one glow-up move β¨ She creates a DialogShell and an unmanaged MessageBox child of that DialogShell. Two for one, no cap π«Ά
An ErrorDialog is the one that warns the user about an invalid or potentially dangerous condition π like bestie something is WRONG and she needs you to know.
She comes with:
- a symbol π
- a message π¬
- three buttons π
The default symbol is an octagon with a diagonal slash (the universal "no β" energy, iconic). The default button labels are OK, Cancel, and Help.
Wanna pop her up? Use XtManageChild β pass the MessageBox as the widget parameter. Wanna pop her back down? XtUnmanageChild. That's it, that's the whole trick π
heads up:XmCreateErrorDialogforces the value of the Shell resourceXmNallowShellResizeto True. Not a suggestion, not a vibe, she just does it.
now the arguments, one by one, because we don't skip β¨
- parent β specifies the parent widget ID π±
- name β specifies the name of the created widget π·οΈ
- arglist β specifies the argument list π
- argcount β specifies the number of attribute/value pairs in the argument list (arglist) π’
For a complete definition of MessageBox and its associated resources, go read XmMessageBox(3) β she's the source of truth, periodt π
π« RETURN π«
Returns the MessageBox widget ID π«Ά that's your girl, go manage her.
π RELATED π
okay that's the whole page bestie, you ate it up π
this was XmCreateErrorDialog(library call) straight from the library call manual β no date on this one, so just imagine me blowing you a kiss across all of time ππ bye ily, go build something iconic β¨
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms