XMCREATEMESSAGEDIALOG(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 ✨

XmCreateMessageDialog β€” the MessageBox MessageDialog convenience creation function πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so bestie, XmCreateMessageDialog is a convenience creation function β€” it's giving "I do the setup so you don't have to" energy. It creates a DialogShell and an unmanaged MessageBox child of that DialogShell. No cap. 🫢

A MessageDialog is literally made for the common interaction tasks, which include:

  • giving information
  • asking questions
  • reporting errors

It comes with a symbol, a message, and three buttons. By default, there is no symbol (yes, the symbol slot starts empty, that's normal πŸ’€). The default button labels are OK, Cancel, and Help. Iconic trio, honestly.

Use XtManageChild to pop up the MessageDialog (pass the MessageBox as the widget parameter); use XtUnmanageChild to pop it down. That's the whole show, main character energy 🌟.

Also important: XmCreateMessageDialog forces the value of the Shell resource XmNallowShellResize to True. Periodt, it just does.

Now the arguments, one by one:

  • 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 MessageBox and its associated resources, see XmMessageBox(3). Go read it, I'm serious, it's the lore ✨


🌸 RETURN 🌸

Returns the MessageBox widget ID. That's your new baby. Cherish it πŸ’–



mwah, that's a wrap! this one's straight out of the library call manual β€” XmCreateMessageDialog(library call) β€” and yes, the footer line says the same thing, so we're keeping it cute and complete πŸŽ€πŸ’«