XMCREATEFILESELECTIONDIALOG(3)
β¨ NAME β¨
ok so bestie, gather round β XmCreateFileSelectionDialog is the FileSelectionBox FileSelectionDialog convenience creation function. that's it. that's the whole vibe. it makes the thing so you don't have to π
π¦ SYNOPSIS π¦
#include <Xm/FileSB.h>
Widget XmCreateFileSelectionDialog(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
πΈ DESCRIPTION πΈ
okay so XmCreateFileSelectionDialog is a convenience creation function β meaning it does the boring setup for you, no cap. it creates a DialogShell and an unmanaged FileSelectionBox child of that DialogShell.
a FileSelectionDialog selects a file. periodt. it comes with the following, all built in:
- an editable text field for the directory mask
- a scrolling list of filenames
- an editable text field for the selected file
- labels for the list and the text fields
- four buttons
the default button labels are literally OK, Filter, Cancel, and Help. iconic lineup honestly π«Ά
and bestie, hear me: one additional WorkArea child may be added to the FileSelectionBox after creation. just the one. don't get greedy π
use XtManageChild to pop up the FileSelectionDialog (pass the FileSelectionBox as the widget parameter); use XtUnmanageChild to pop it down. that's the whole up/down situation, it's giving elevator energy fr fr.
also IMPORTANT: XmCreateFileSelectionDialog forces the value of the Shell resource XmNallowShellResize to True. it doesn't ask. it just does it. main character behavior π
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 FileSelectionBox and its associated resources, see XmFileSelectionBox(3). go read it, i'll wait π§
π RETURN π
Returns the FileSelectionBox widget ID. that's your new baby. take care of it π₯Ή
π RELATED π
ngl this whole page was sourced from the XmCreateFi...ctionDialog(library call) page itself β that's the footer, version and date and all. slay, we made it to the end, bestie. you ate. no crumbs. π
β¨π
π¦ 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