XMCOMBOBOXDELETEPOS(3)
π XmComboBoxDeletePos π
okay bestie, gather round, because we're doing a <Xm/ComboBox.h> moment and it's genuinely so much easier than it sounds. this is XmComboBoxDeletePos, a library call, and it does literally exactly what it says on the tin: it deletes a XmComboBox item. that's it. that's the whole job. no cap. β¨
β¨ SYNOPSIS β¨
#include <Xm/ComboBox.h>
void XmComboBoxDeletePos(
Widget w,
int pos);
like, look at it. two args. no return. we love a low-maintenance function π«Ά
πΈ DESCRIPTION πΈ
so the XmComboBoxDeletePos function deletes a specified item from a XmComboBox widget. one item, one call, done. it's giving "minimal effort, maximum slay" π
now the deets on the args, because they matter:
wβ this is your XmComboBox widget ID. it's the which combo box are we talking about argument. you gotta tell it who you mean, bestie.posβ this is the position of the item to be deleted. not the item itself! the position. a number. remember that, it comes back around in a sec π
π RETURN VALUE π
XmComboBoxDeletePos returns no value. it's void, babes. it just does the thing and dips. don't sit there waiting for a return code, she's not coming π¦
π APPLICATION USAGE π
okay this is the part where people get confused and honestly? valid. so listen:
the functions XmComboBoxAddItem and XmComboBoxDeletePos have different naming conventions β Item versus Pos β and that's on purpose, because of the objects they're manipulating. it's not a typo, it's not a vibe inconsistency, it's intentional:
- the
Itemis a string to be added πΈ - the
Posis a numeric position number π’
so AddItem wants a string, DeletePos wants a number. one is a name, one is a coordinate. iykyk π
β SEE ALSO β
go read those too, they're the friend group π
and that's the whole page, bestie!! this one lives in the library call section of the manual, and it's signed off the way all the library call pages are β same name, same section, XmComboBoxDeletePos(library call). go delete a position, you absolute icon πβ¨π«Ά
π¦ 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