XMOPTIONBUTTONGADGET(3)
π XmOptionButtonGadget π
okay bestie, welcome to the XmOptionButtonGadget page β it's a RowColumn function, it lives in the library call section of the manual, and it's literally just here to hand you the widget ID of the CascadeButtonGadget inside an OptionMenu. short king behavior, but iconic. β¨
π SYNOPSIS π
#include <Xm/RowColumn.h>
Widget XmOptionButtonGadget(
Widget option_menu);
πΈ DESCRIPTION πΈ
so, XmOptionButtonGadget is the plug. it gives your application the means to obtain the widget ID for the internally created CascadeButtonGadget β the one the OptionMenu made all by itself, no cap. and once you have that widget ID? it's yours. you can go in and adjust the visuals for the CascadeButtonGadget, if desired. glow-up privileges, unlocked. π
here's the lore: when an application creates an instance of the OptionMenu widget, the widget creates two internal gadgets. not one. two. main character and her co-star:
- one is a LabelGadget β it's the one displaying RowColumn's
XmNlabelStringresource - the other is a CascadeButtonGadget β it shows the current selection and provides the means for posting the OptionMenu's submenu
and because the app is messy sometimes, the user can specify resources in a resource file for the automatically created widgets and gadgets of an OptionMenu. so here's the guest list β the names of these widgets (or gadgets) and the associated OptionMenu areas, fr fr:
π·οΈ Option Menu Label Gadget
OptionLabel
π Option Menu Cascade Button
OptionButton
β¨ option_menu β¨
option_menuβ specifies the OptionMenu widget ID π«Ά
π for a complete definition of RowColumn and its associated resources, go look at XmRowColumn(3). iykyk.
β RETURN β
returns the widget ID for the internal button. that's it. that's the whole vibe. π¦
π RELATED π
and that's the page, bestie!! π this whole thing is filed under XmOptionButtonGadget(library call) β that's the title, the source, and the date stamp all rolled into one cute little footer. go forth and grab that widget ID, you absolute legend. πππ
π¦ 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