XMCOMBOBOXSETITEM(3)
π XmComboBoxSetItem π
okay bestie, welcome to the library call section of the manual, and today's main character is XmComboBoxSetItem β the function that sets an item in the XmComboBox list. yes that's literally its whole job and it does it gorgeously. π
β¨ NAME β¨
XmComboBoxSetItem β set an item in the XmComboBox list π¦
πΈ SYNOPSIS πΈ
#include <Xm/ComboBox.h>
void XmComboBoxSetItem(
Widget w,
XmString item);
π DESCRIPTION π
so here's the tea, bestie: the XmComboBoxSetItem function selects an item in the XmList of the given XmComboBox widget and makes it the first visible item in the list. like, it doesn't just pick it β it also scrolls the vibe to the top so everyone can see. main character energy, honestly. π
The w argument specifies the XmComboBox widget ID. that's the widget you're talking to, no cap.
The item argument specifies the XmString for the item to be set in the XmComboBox. so it's an XmString, not just any lil string, okay? π
β οΈ and now the important part: if the item is not found on the list,XmComboBoxSetItemnotifies the user via theXtWarningfunction. so if you typo that item name, bestie, you're getting a warning, not a silent little shrug. it's giving we tried to tell you. π
π«Ά RETURN VALUE π«Ά
The XmComboBoxSetItem function returns no value. nope, not a thing, not a status code, nothing. it's void, it's mysterious, it simply does the thing and leaves. periodt. π
π SEE ALSO π
XmComboBoxAddItem(3)XmComboBoxDeletePos(3)XmComboBoxSelectItem(3)XtWarning(3)- and also: in the CAE Specification, Window Management: X Toolkit Intrinsics. β¨
and that's the whole page, bestie!! this lil icon lives in the library call manual as XmComboBoxSetItem(library call) β go forth and set those items π
π§π
π¦ 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