gui.setComboBoxItemData
Associates data with a comboBox item.
Prototype
bOk = gui.setComboBoxItemData ( hComboBoxItem, kDataRole, vValue )
Description
Check the kDataRole* constants for more info.
Parameters
hComboBoxItem - valid comboBox item handle
kDataRole - predefined data role constant
vValue - data role value you wish to associate
Return values
bOk - true on success
Sample
if ( hItem and hFile ) then gui.setComboBoxItemData ( hItem, gui.kDataRoleDisplay , hFile ) gui.setComboBoxItemData ( hItem, gui.kDataRoleDecoration , hFile ) gui.setComboBoxItemData ( hItem, gui.kDataRoleUser , hFile ) end
Available since ShiVa 2.0