XMCREATESIMPLEPOPUPMENU(3)
β¨ NAME β¨
XmCreateSimplePopupMenu β a RowColumn widget convenience creation function, and bestie, it's giving effortless popup menu π
π¦ SYNOPSIS π¦
#include <Xm/RowColumn.h>
Widget XmCreateSimplePopupMenu(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
π DESCRIPTION π
okay so. XmCreateSimplePopupMenu creates an instance of a RowColumn widget of type XmMENU_POPUP and hands you back the associated widget ID. that's it, that's the whole vibe. π«Ά
This routine creates a Popup menu pane and its button children. and the naming scheme?? so organized of it:
- every button is named
button_n, where n is an integer from 0 (zero) to the number of buttons in the menu minus 1 - every separator is named
separator_n, where n is an integer from 0 (zero) to the number of separators in the menu minus 1 - every title is named
label_n, where n is an integer from 0 (zero) to the number of titles in the menu minus 1
and here's the part you gotta internalize, no cap: buttons, separators, and titles are named and created in the order in which they are specified in the RowColumn simple menu creation resources supplied in the argument list. order matters. periodt. π₯
πΈ the arguments πΈ
parentβ specifies the widget ID of the parent of the MenuShellnameβ specifies the name of the created widgetarglistβ specifies the argument listargcountβ specifies the number of attribute/value pairs in the argument list (arglist)
π the resources π
A number of resources exist specifically for use with this and other simple menu creation routines. β¨
and listen β the ONLY button types allowed in the XmNbuttonType resource are:
XmCASCADEBUTTONXmPUSHBUTTONXmRADIOBUTTONXmCHECKBUTTONXmTITLEXmSEPARATORXmDOUBLE_SEPARATOR
not me being dramatic but if you try to sneak in anything else, that's not on the list. don't do it. π
For a complete definition of RowColumn and its associated resources, see XmRowColumn(3).
π RETURN π
Returns the RowColumn widget ID. that's your prize bestie, go build something iconic π
π RELATED π
and that's the whole page, mwah π this one came from the XmCreateSimplePopupMenu(library call) manual, so if you're citing it, that's the source/version label it rolls with β love that for it, fr fr. π¦β¨π
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms