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

πŸ’– XmCreateWarningDialog πŸ’–

okay bestie, listen up β€” this is a page from the library call manual, and it's all about XmCreateWarningDialog, the MessageBox WarningDialog convenience creation function. Yes, "convenience" is literally in the name. She's here to make your life easier. πŸŽ€


✨ NAME ✨

XmCreateWarningDialog β€” the MessageBox WarningDialog convenience creation function. that's the whole name, that's the whole job. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

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

no cap, that's exactly how you call her. copy it character for character, she does not do typos. πŸ‘‘


🌸 DESCRIPTION 🌸

XmCreateWarningDialog is a convenience creation function that creates a DialogShell and an unmanaged MessageBox child of that DialogShell. (yes, unmanaged β€” she's not popping up until you say so. main character doesn't show up uninvited. πŸ™ˆ)

A WarningDialog warns users of action consequences and gives them a choice of resolutions. It includes a symbol, a message, and three buttons. The default symbol is an exclamation point. The default button labels are OK, Cancel, and Help. iconic trio honestly. πŸ’–

Use XtManageChild to pop up the WarningDialog (passing the MessageBox as the widget parameter); use XtUnmanageChild to pop it down. up and down, she's flexible like that. ✨

heads up: XmCreateWarningDialog forces the value of the Shell resource XmNallowShellResize to True. not a suggestion, not a vibe, it's forced. periodt.
  • parent β€” Specifies the parent widget ID. (who's her mom, basically 🫢)
  • name β€” Specifies the name of the created widget. (name her something cute)
  • arglist β€” Specifies the argument list.
  • argcount β€” Specifies the number of attribute/value pairs in the argument list (arglist).

For a complete definition of MessageBox and its associated resources, see XmMessageBox(3). yes bestie, go read that one too, it's giving ✨lore✨.


πŸŽ€ RETURN πŸŽ€

Returns the MessageBox widget ID. that's it. that's the whole return. she's lowkey simple like that. πŸ’…



okay and that's the whole page bestie 🌈 β€” it's the XmCreateWarningDialog(library call) page, so that's the manual section she lives in, and the whole thing came to you straight from that library-call manual page footer. go build something cute with her, you're gonna slay. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ