AddItem

From IfsoGUIWiki

Jump to: navigation, search

Contents

Declaration

AddItem(strName:String, intData:Int, strTip:String)
AddItem(strName:String, intData:Int = 0, strTip:String = "", bSelected:Int = False) - Combobox version.
Adds an item to the combo box.

Returns

Nothing

Parameters

  • strName:String - Name of the item (String). This is displayed in the list.
  • intData:Int - Data of the item (Integer). Defaults to 0 for Combobox.
  • strTip:String - Tip to display when the mouse hovers over the item (String). Defaults to "" for Combobox.
  • bSelected:Int - Should the item be selected when added (Integer). Defaults to False. This parameter is only used by the Combobox.

Gadget Information

Pertains to any gadget that has listbox functionality. Combobox, Listbox, MCListbox, and FileSelect. For the FileSelect gadget, it is an internal function, and should not be called.

Example

Personal tools