XMCREATEPROMPTDIALOG(3)
π XmCreatePromptDialog π
okay bestie, welcome to the XmCreatePromptDialog page from the library call manual β this is the SelectionBox PromptDialog convenience creation function, and yes, it's exactly as iconic as it sounds π
β¨ SYNOPSIS β¨
#include <Xm/SelectioB.h>
Widget XmCreatePromptDialog(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
(no, the header really is spelled <Xm/SelectioB.h>, don't come for me, I don't make the rules π
)
πΈ DESCRIPTION πΈ
So XmCreatePromptDialog is a convenience creation function β a little shortcut bestie that does the boring setup for you. It creates a DialogShell plus an unmanaged SelectionBox child of that DialogShell. Periodt.
A PromptDialog is the thing that politely asks the user for text input. It's giving:
- a message π
- a text input region βοΈ
- three managed buttons πππ
The default button labels are OK, Cancel, and Help. Obsessed.
There's also an additional button whose default label is Apply β it gets created unmanaged, so it's just sitting there in its own little era until you explicitly manage it, if you need it. And heads up: one additional WorkArea child may be added to the SelectionBox after creation. Just the one. She's exclusive π
Also, XmCreatePromptDialog forces the value of the SelectionBox resource XmNdialogType to XmDIALOG_PROMPT. No negotiating, no vibe check, it's decided.
Wanna pop that PromptDialog up? Use XtManageChild and pass the SelectionBox as the widget parameter. Wanna pop it down? Use XtUnmanageChild. That's it, that's the whole dance π¦
And one more force move: XmCreatePromptDialog forces the value of the Shell resource XmNallowShellResize to True.
the arguments, bestie π·
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 SelectionBox and its associated resources, go read XmSelectionBox(3). She's the main character, this function is just her little sister fr fr.
π«Ά RETURN π«Ά
Returns the SelectionBox widget ID. That's it. That's the whole gift π
β RELATED β
and that's the whole page babes π it's XmCreatePromptDialog(library call), straight from the library call manual, dated however the library call manual feels like dating itself β slay, go prompt somebody for text input responsibly β¨π
π¦ 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