XMCREATETEMPLATEDIALOG(3)
β¨ NAME β¨
XmCreateTemplateDialog β bestie, it's a MessageBox TemplateDialog convenience creation function π like, it makes your dialog for you so you don't have to, periodt.
π SYNOPSIS π
#include <Xm/MessageB.h>
Widget XmCreateTemplateDialog(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
πΈ DESCRIPTION πΈ
okay so. XmCreateTemplateDialog is a convenience creation function β and when I say convenience I mean it's literally doing the most so you don't have to π«Ά It creates a DialogShell and an unmanaged MessageBox child of that DialogShell. The MessageBox widget's XmNdialogType resource gets set to XmDIALOG_TEMPLATE. no cap, that's just what it does.
By default, the TemplateDialog widget contains only the separator child. that's it. that's the whole starting lineup π You can build a customized dialog by adding children to the TemplateDialog β it's giving blank canvas, main character energy β¨
You can create the standard MessageBox pushbuttons β Cancel, Help, and OK β by specifying the associated callback and label string resources. Setting XmNsymbolPixmap or XmNmessageString creates a symbol or message label. obsessed with how easy that is π
Use XtManageChild to pop up the TemplateDialog (passing the MessageBox as the widget parameter); use XtUnmanageChild to pop it down. up, down, up, down β she's flexible π¦
β heads up bestie:XmCreateTemplateDialogforces the value of the Shell resourceXmNallowShellResizetoTrue. not asking, just doing it.
π the arguments, one by one
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, see XmMessageBox(3). iykyk, go read it, it's iconic π
π₯ RETURN π₯
Returns the MessageBox widget ID. that's it. that's the tea π
π RELATED π
okay that's the whole page, bestie!! this little masterpiece lives in the XmCreateTemplateDialog(library call) corner of the Motif manual, and yeah the footer just says XmCreateTemplateDialog(library call) over and over because it's that confident in itself π π slay, go build a dialog, you got this π«Άβ¨
π¦ 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