XMCREATERADIOBOX(3)
β¨ XmCreateRadioBox β¨
okay bestie, gather round, because today we're talking about XmCreateRadioBox β a RowColumn widget convenience creation function, and she is lowkey the queen of "only one of you gets to be on at a time." π
This one lives in the library call section of the manual, just so you know where you found her. π
πΈ SYNOPSIS πΈ
#include <Xm/RowColumn.h>
Widget XmCreateRadioBox(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
π DESCRIPTION π
So XmCreateRadioBox creates an instance of a RowColumn widget of type XmWORK_AREA and hands you back the associated widget ID. That's the whole vibe. β¨
Typically it's a composite widget stuffed with multiple ToggleButtonGadgets, and the RadioBox's whole job is to arbitrate β she makes sure that at most one ToggleButtonGadget is on at any time. Not two. Not zero-then-two. One. Periodt. π
Unless your application supplies other values in the arglist, this function quietly sets up initial values for several RowColumn resources. She initializes:
XmNpackingtoXmPACK_COLUMNXmNradioBehaviortoTrueXmNisHomogeneoustoTrueXmNentryClasstoXmToggleButtonGadgetClass
And inside a RadioBox specifically, the ToggleButton or ToggleButtonGadget resource XmNindicatorType defaults to XmONE_OF_MANY, and the ToggleButton or ToggleButtonGadget resource XmNvisibleWhenOff defaults to True. slay. π¦
This routine is literally just provided as a convenience function for creating RowColumn widgets β she's doing the tedious setup so you don't have to. π«Ά
Now the arguments, one by one, no skipping:
parentβ Specifies the parent widget ID. (who's your mom, bestie π)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 RowColumn and its associated resources, see XmRowColumn(3). fr fr, go read that one too. π
π₯ RETURN π₯
Returns the RowColumn widget ID. that's it, that's the return value, she's giving exactly what she promised π
β RELATED β
iykyk, here's the whole friend group:
XmCreateRowColumn(3)XmCreateSimpleCheckBox(3)XmCreateSimpleRadioBox(3)XmCreateWorkArea(3)XmRowColumn(3)XmVaCreateSimpleCheckBox(3)XmVaCreateSimpleRadioBox(3)
and that's the page, bestie!! π this was XmCreateRadioBox(library call), coming to you straight from the library call corner of the manual β go forth and build ur radio boxes, no cap. πβ¨π¦
π¦ 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