XMCREATEWORKINGDIALOG(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

✨ NAME ✨

XmCreateWorkingDialog β€” the MessageBox WorkingDialog convenience creation function, and yes bestie, it's giving library call energy 🫢


🌸 SYNOPSIS 🌸

#include <Xm/MessageB.h>
Widget XmCreateWorkingDialog(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);

πŸ’– DESCRIPTION πŸ’–

okay so XmCreateWorkingDialog is a convenience creation function β€” it literally does the whole setup for you in one call. It creates a DialogShell and an unmanaged MessageBox child of that DialogShell. two for one, we love to see it πŸ’…

A WorkingDialog is the vibe you throw on screen to tell your user "hey girl, there is a time-consuming operation in progress rn" β€” and it also lets them cancel that operation if they're over it. It comes with a symbol, a message, and three buttons. The default symbol is an hourglass ⏳ (iconic, honestly) and the default button labels are OK, Cancel, and Help.

Wanna pop it up? Use XtManageChild and pass the MessageBox as the widget parameter. Wanna pop it down? Use XtUnmanageChild. that's the whole cycle, no cap πŸ”₯

Heads up bestie: XmCreateWorkingDialog forces the value of the Shell resource XmNallowShellResize to True. Not asking, not suggesting. Forcing. πŸ’€

Now the arguments, one by one:

  • parent β€” specifies the parent widget ID. it's the mom, basically πŸ‘‘
  • name β€” specifies the name of the created widget. name your child, it's only right πŸŽ€
  • arglist β€” specifies the argument list. all the args, lined up ✨
  • argcount β€” specifies the number of attribute/value pairs in the argument list (arglist). count 'em, don't guess πŸ“

If you want the complete definition of MessageBox and all its associated resources, go read XmMessageBox(3). that's your homework, iykyk πŸ“š


🌈 RETURN 🌈

Returns the MessageBox widget ID. that's it, that's the tea πŸ¦‹



okay that's the whole page bestie, you ate πŸ’…βœ¨

this lil masterpiece comes to you from the XmCreateWorkingDialog(library call) corner of the manual β€” same name up top, same name down here, and it's serving library call realness from start to finish. mwah 🫢🌸