XMCREATEMESSAGEDIALOG(3)
β¨ NAME β¨
XmCreateMessageDialog β the MessageBox MessageDialog convenience creation function π
π SYNOPSIS π
#include <Xm/MessageB.h>
Widget XmCreateMessageDialog(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
π¦ DESCRIPTION π¦
okay so bestie, XmCreateMessageDialog is a convenience creation function β it's giving "I do the setup so you don't have to" energy. It creates a DialogShell and an unmanaged MessageBox child of that DialogShell. No cap. π«Ά
A MessageDialog is literally made for the common interaction tasks, which include:
- giving information
- asking questions
- reporting errors
It comes with a symbol, a message, and three buttons. By default, there is no symbol (yes, the symbol slot starts empty, that's normal π). The default button labels are OK, Cancel, and Help. Iconic trio, honestly.
Use XtManageChild to pop up the MessageDialog (pass the MessageBox as the widget parameter); use XtUnmanageChild to pop it down. That's the whole show, main character energy π.
Also important: XmCreateMessageDialog forces the value of the Shell resource XmNallowShellResize to True. Periodt, it just does.
Now the arguments, one by one:
parentβ Specifies the parent widget IDnameβ Specifies the name of the created widgetarglistβ Specifies the argument listargcountβ Specifies the number of attribute/value pairs in the argument list (arglist)
For a complete definition of MessageBox and its associated resources, see XmMessageBox(3). Go read it, I'm serious, it's the lore β¨
πΈ RETURN πΈ
Returns the MessageBox widget ID. That's your new baby. Cherish it π
π RELATED π
mwah, that's a wrap! this one's straight out of the library call manual β XmCreateMessageDialog(library call) β and yes, the footer line says the same thing, so we're keeping it cute and complete ππ«
π¦ 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