gui.insertComboBoxItems

Insert multiple empty items into a comboBox.

Prototype

  1. tComboBoxItems = gui.insertComboBoxItems ( hComponent, nIndex, nCount )

Description

Inserted items are empty and must subsequently be filled.


Parameters

hComponent - valid GUI comboBox handle
nIndex - index number 1..n of where you want to insert the items
nCount - number of how many items you want to insert 1..n


Return values

tComboBoxItems - table of handles to the newly created items


Sample

  1. local tItems = { }
  2. if ( gui.getComboBoxItemCount ( hComboBox ) ~= #tGames ) then
  3. gui.removeAllComboBoxItems ( hComboBox )
  4. tItems = gui.insertComboBoxItems ( hComboBox, 1, #tGames )
  5. end

Available since ShiVa 2.0