DTCOMBOBOXDELETEPOS(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’… DtComboBoxDeletePos β€” like, the library call your bestie needed

okay so this is DtComboBoxDeletePos, a library call from the Dt gang β€” we're in manual-page-land, section 3, and she is literally here to yeet one single item out of a DtComboBox widget. no cap, that's the whole vibe.


✨ NAME ✨

DtComboBoxDeletePos β€” delete a DtComboBox item πŸ—‘οΈπŸ’–


✨ SYNOPSIS ✨

#include <Dt/ComboBox.h>
void DtComboBoxDeletePos(
Widget w,
int pos);

like, that's it. that's the whole signature. two args, no drama, returns nothing. slay.


πŸ¦‹ DESCRIPTION πŸ¦‹

Note: ⚠️ bestie please read this first β€” this function has been superseded by the equivalent Motif function, XmComboBoxDeletePos. Please refer to the Motif Programmer's Reference for more information. so like… she still exists, she's just got a younger, cooler Motif sister now, iykyk πŸ™ˆ

The DtComboBoxDeletePos function deletes a specified item from a DtComboBox widget. that's the whole job. item goes in, item comes out, main character energy for real πŸ’…

The w argument specifies the DtComboBox widget ID. (yes, the widget itself, hand her over 🫢)

The pos argument specifies the position of the item to be deleted. it's a number, it's a position, it's giving index but make it cute πŸŽ€


🌸 RETURN VALUE 🌸

The DtComboBoxDeletePos function returns no value. literally nothing. void. she does the thing and dips, no receipts, no return address 😭✨


⭐ APPLICATION USAGE ⭐

okay so here's the tea about naming: the functions DtComboBoxAddItem and DtComboBoxDeletePos have different naming conventions β€” Item versus Pos β€” and it's not a typo, it's because of the objects they're manipulating:

  • the Item is a string to be added
  • the Pos is a numeric position number

so like, one's a string, one's a number, and honestly? iconic of them to just… commit to that. 🧚


πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, they're all linked up:


k that's the page!! πŸŽ€ no date or version stamping on this one, the footer's just DtComboBoxDeletePos(library call) doing a little mirror moment β€” a library call, that's her whole identity. mwah, go delete some items bestie πŸ’œπŸ”₯

πŸ“¦ where this page comes from