XMCREATEFILESELECTIONBOX(3)
π XmCreateFileSelectionBox β the glow-up guide
okay bestie, welcome to the XmCreateFileSelectionBox page from the library call manual β¨ this is the one that spawns your FileSelectionBox widget, and yes she's iconic π
πΈ NAME πΈ
XmCreateFileSelectionBox β the FileSelectionBox widget creation function π
β¨ SYNOPSIS β¨
#include <Xm/FileSB.h>
Widget XmCreateFileSelectionBox(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
like. that's it. that's the whole incantation πͺ
π¦ DESCRIPTION π¦
So XmCreateFileSelectionBox creates an unmanaged FileSelectionBox β like, she exists, she's gorgeous, but she is NOT on screen yet, you gotta manage her yourself, no cap.
A FileSelectionBox is literally for selecting a file, and she comes fully loaded with:
- 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 text fields π·οΈ
- Four buttons ππππ
The default button labels are OK, Filter, Cancel, and Help β the classic four, the main characters, periodt π
You can add extra work area children to the FileSelectionBox after creation, no biggie. And she inherits all the layout functionality that SelectionBox provides for any additional work area children β so your extra kids get styled correctly, you're welcome π
ngl this next part matters: if the parent of the FileSelectionBox is aDialogShell, useXtManageChildto pop up the FileSelectionDialog (passing the FileSelectionBox as the widget parameter); useXtUnmanageChildto pop it down. that's the whole show/hide situation, iykyk π
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 FileSelectionBox and all her associated resources, go read XmFileSelectionBox(3) β she's the full lore drop π
π«Ά RETURN π«Ά
Returns the FileSelectionBox widget ID. that's your girl's ID, hold onto it π
π RELATED π
and that's the tea, bestie β¨ this whole page lives in the library call manual, filed under XmCreateFileSelectionBox β go forth and pop up some file dialogs, you absolute icon π
ππ¦
π¦ 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