BlitzMax Docs -> A -> AddGadgetItem
AddGadgetItem(gadget:TGadget,text$,flags=0,icon=-1,tip$="",extra:Object=Null)
Returns:
Nothing.Description:
Add an item to a list based gadget.An item can be added to the ComboBox, ListBox, Tabber and ToolBar list based gadgets.
Its text parameter is used as its label.
The flags parameter can be a combination of the following values:
| Flag | Meaning |
| GADGETITEM_NORMAL | A plain gadget item. |
| GADGETITEM_DEFAULT | The item defaults to a selected state. |
| GADGETITEM_TOGGLES | The item alternates between selected states when pressed. |
The tip$ parameter attaches an optional tooltip to the item.
The optional icon parameter specifies an icon from the gadget's IconStrip (see SetGadgetIconStrip).
The extra parameter is supplied in the EventExtra field of any Event generated by the Item.
See Also: InsertGadgetItem, CreateComboBox, CreateListBox, CreateTabber and CreateToolBar
Comments
None.
BlitzMax Manual Forum
Blitz3D Equivalent Command




