BlitzPlus Docs -> GUI - Category -> Gadgets -> SetGadgetIconStrip
SetGadgetIconStrip gadget,icon_strip
Parameters:
gadget - A container gadget handleicon_strip - An icon strip handle
Description:
Attaches an icon strip to a container gadget.Once attached, icons may be selected when items are added or modified with the AddGadgetItem , InsertGadgetItem and ModifyGadgetItem commands.
This command may only be used with combobox, listbox and tabber gadgets.
See also: LoadIconStrip.
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




