Skip to content

SetGadgetIconStrip

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

SetGadgetIconStrip

SetGadgetIconStrip:Void gadget:Int32, icon_strip:Int32
Parameter Mode Type Default Description
gadget In Int32 required Handle of a list box, combo box or tabber.
icon_strip In Int32 required

Description

Gives a list box, combo box or tabber the icons to use for its entries. Afterwards the icon number given to AddGadgetItem, InsertGadgetItem or ModifyGadgetItem picks one.

Examples

Graphics 320, 240, 32, 2
strip = CreateImage(32, 16)
SetBuffer ImageBuffer(strip)
Color 255, 0, 255 : Rect 0, 0, 32, 16, 1
Color 200, 40, 40 : Rect 2, 2, 12, 12, 1
Color 40, 140, 40 : Oval 18, 2, 12, 12, 1
SaveImage strip, "icons.bmp"
SetBuffer BackBuffer()
win  = CreateWindow("Icons", 10, 10, 300, 150, Desktop(), 3)
list = CreateListBox(10, 10, 200, 90, win)
SetGadgetIconStrip list, LoadIconStrip("icons.bmp")
AddGadgetItem list, "Red square", False, 0
AddGadgetItem list, "Green circle", False, 1
Repeat
Until WaitEvent() = $803

Media

SetGadgetIconStrip

Related Commands

FreeIconStrip, LoadIconStrip, SetToolBarTips

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally