BlitzPlus Docs -> GUI - Category -> Gadgets -> InsertGadgetItem
InsertGadgetItem gadget,index,item$[,icon]
Parameters:
gadget - A container gadget handleindex - Integer index at which the item is to be inserted
item$ - Item to insert
icon - An icon index.
Description:
Inserts an item at any point in a container gadget.The optional icon parameter allows you to choose an icon for the item.
To be able to use icons, the gadget must have had an icon strip attached using SetGadgetIconStrip
This command may only be used with combobox, listbox and tabber gadgets.
See also: SetGadgetIconStrip, LoadIconStrip, FreeIconStrip.
Example:
; Create a window and some labels
win=CreateWindow("Test Labels",100,100,200,100,0,49)
tab=CreateTabber(0,0,200,100,win)
; get bitmap icon from the Blitz directory
appdir$=SystemProperty("appdir")
blitzdir$=Left(appdir,Len(appdir)-5)
icons=LoadIconStrip(blitzdir$+"\cfg\dbg_toolbar.bmp")
SetGadgetIconStrip tab,icons
InsertGadgetItem(tab,0,"Tab 1",0)
InsertGadgetItem(tab,1,"Tab 2",1)
; The simplest event loop possible!
Repeat
Until WaitEvent()=$803
End ; bye!
Comments
None.
BlitzPlus Manual Forum
Blitz3D Equivalent Command




