DTCOMBOBOXDELETEPOS(3)
π 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
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms