Skip to content

ModifyGadgetItem

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

ModifyGadgetItem

ModifyGadgetItem:Void gadget:Int32, index:Int32, item:String, icon:Int32=-1
Parameter Mode Type Default Description
gadget In Int32 required Handle of a list box, combo box or tabber.
index In Int32 required Number of the entry, starting at 0.
item In String required
icon In Int32 -1 Number of an icon of the gadget. Defaults to -1, which means none.

Description

Changes the text of an entry.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Modify", 10, 10, 300, 200, Desktop(), 3)
list = CreateListBox(10, 10, 200, 100, win)
AddGadgetItem list, "Old name"
ModifyGadgetItem list, 0, "New name"
Repeat
Until WaitEvent() = $803

Related Commands

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

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally