XMCREATESIMPLEPULLDOWNMENU(3)
π NAME π
XmCreateSimplePulldownMenu β ok so it's literally a RowColumn widget convenience creation function, and bestie, "convenience" is doing a LOT of heavy lifting here because it builds you a whole menu in one call π
β¨ SYNOPSIS β¨
#include <Xm/RowColumn.h>
Widget XmCreateSimplePulldownMenu(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
π¦ DESCRIPTION π¦
So XmCreateSimplePulldownMenu makes you an instance of a RowColumn widget, type XmMENU_PULLDOWN, and hands you back the widget ID like the little gift it is π
This routine creates a Pulldown menu pane and its button children. Not me doing the whole nursery thing but okay:
- every button gets named
button_n, where n is an integer from0(zero) all the way up to the number of buttons in the menu minus1 - every separator gets named
separator_n, where n is an integer from0(zero) up to the number of separators in the menu minus1 - every title gets named
label_n, where n is an integer from0(zero) up to the number of titles in the menu minus1
And the order?? Buttons, separators, and titles are named <em>and</em> created <strong>in the order they are specified</strong> in the RowColumn simple menu creation resources you supplied in the argument list. So it's giving β¨sequential main character energyβ¨, no reordering, no cap.
parentβ the widget ID of the parent of the MenuShell πΈnameβ the name of the created widget, iconicarglistβ the argument list πargcountβ how many attribute/value pairs are chillin' in the argument list (<code>arglist</code>) π’
A whole bunch of resources exist specifically for use with this and other simple menu creation routines, iykyk. So like, heads up: the <strong>only</strong> button types allowed in the XmNbuttonType resource are:
XmCASCADEBUTTONXmPUSHBUTTONXmRADIOBUTTONXmCHECKBUTTONXmTITLEXmSEPARATORXmDOUBLE_SEPARATOR
For a complete definition of RowColumn and its associated resources, go see XmRowColumn(3) bestie, she has the full lore π
π₯ RETURN π₯
Returns the RowColumn widget ID. Periodt. π
π RELATED π
and that's the whole page babes π it's a library call page, footer said so, and the header said it too β XmCreateSimplePulldownMenu in the library call section, mwah π«Ά go build a menu, you got this β¨
π¦ 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