Skip to content

AddGadgetItem

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzPlus

AddGadgetItem

AddGadgetItem:Void gadget:Int32, item:String, select:Int32=0, icon:Int32=-1
Parameter Mode Type Default Description
gadget In Int32 required Handle of a list box, combo box or tabber.
item In String required
select In Int32 0 True makes it the selected entry. Defaults to False.
icon In Int32 -1 Number of an icon in the icon strip given with SetGadgetIconStrip. Defaults to -1, which means none.

Description

Adds an entry at the end of a list box, combo box or tabber. For a tabber the entry is a new tab. Use InsertGadgetItem to put it somewhere else.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("List", 10, 10, 300, 200, Desktop(), 3)
list = CreateListBox(10, 10, 200, 120, win)
AddGadgetItem list, "Apples"
AddGadgetItem list, "Pears"
AddGadgetItem list, "Plums", True
Repeat
Until WaitEvent() = $803

Media

AddGadgetItem

Related Commands

ActivateGadget, ClearGadgetItems, GadgetItemText, InsertGadgetItem, ModifyGadgetItem, RemoveGadgetItem, SelectedGadgetItem, SelectGadgetItem

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally