XMCOMBOBOXDELETEPOS(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 Item is a string to be added 🌸
  • the Pos is 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 πŸ‘‘βœ¨πŸ«Ά