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

XmCreateQuestionDialog β€” the MessageBox QuestionDialog convenience creation function, aka the girl who pops up just to ask you a lil question πŸ’…


🌸 SYNOPSIS 🌸

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

πŸ’– DESCRIPTION πŸ’–

okay bestie so XmCreateQuestionDialog is a convenience creation function β€” meaning it does the boring setup for you β€” and what it makes is a DialogShell plus an unmanaged MessageBox child of that DialogShell. yes, unmanaged, as in it's not on screen yet, she's just getting ready backstage πŸŽ€

A QuestionDialog exists to get the answer to a question from the user. it comes with a symbol, a message, and three buttons. the default symbol is a question mark (iconic, obviously), and the default button labels are OK, Cancel, and Help ✨

to pop the QuestionDialog up, use XtManageChild and pass the MessageBox as the widget parameter 🫢 to pop it back down, use XtUnmanageChild. that's the whole vibe check, no cap.

XmCreateQuestionDialog also forces the value of the Shell resource XmNallowShellResize to True. it's not a suggestion, she's doing it, periodt πŸ’€

  • 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 literally begging πŸ™ˆ

⭐ RETURN ⭐

returns the MessageBox widget ID. that's your girl. take care of her πŸ‘‘



and that's the page bestie, no notes πŸ’œ this was XmCreateQuestionDialog(library call) β€” the library call manual, footer and all β€” mwah, go forth and ask your questions πŸŒˆπŸŽ€