SetGadgetIconStrip gadget,icon_strip
Parameters
|
gadget - toolbar, combo box, list box, tree view or tabber icon_strip - icon strip handle from LoadIconStrip |
Description
|
Attaches an icon strip to a gadget so its items can show icons. Requires Extended language mode. For combo boxes, list boxes, tree views and tabbers, the strip becomes the palette their items draw from: the icon parameter of AddGadgetItem, InsertGadgetItem, ModifyGadgetItem, AddTreeViewNode and friends is an index into this strip (-1 means no icon). Toolbars are different: assigning a strip rebuilds the toolbar completely, creating one button per icon in strip order. Icons that are entirely the strip's transparent colour become separator gaps instead of buttons. Toolbar item indices, tips and enabled states all restart from this new set, so assign the strip before configuring items. The gadget takes its own DPI-scaled copy of the strip - freeing the source with FreeIconStrip afterwards is safe, and one strip can feed any number of gadgets. Gadgets that do not use icons stop with a runtime error. See also: LoadIconStrip, FreeIconStrip, AddGadgetItem, AddTreeViewNode, CreateToolBar. |
Index