XMCREATEFILESELECTIONBOX(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 a DialogShell, use XtManageChild to pop up the FileSelectionDialog (passing the FileSelectionBox as the widget parameter); use XtUnmanageChild to 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 πŸ’œ



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 πŸ’…πŸŽ€πŸ¦‹