# GUI Control - ListBox (scripting commands)

- [ctrlAutoScrollDelay](../../commands/ctrlAutoScrollDelay.md): Returns number of seconds auto-scroll will wait before scroll and/or rewind. -2 if scrollbar not present.
- [ctrlAutoScrollRewind](../../commands/ctrlAutoScrollRewind.md): Returns true if auto-scroll should move back to start after it reaches the end.
- [ctrlAutoScrollSpeed](../../commands/ctrlAutoScrollSpeed.md): Returns number of seconds to auto-scroll one line. -1 if auto-scroll is disabled. -2 if scrollbar not present.
- [lbAdd](../../commands/lbAdd.md): Adds an item with the given text to the CT_LISTBOX or CT_COMBO or CT_TOOLBOX.
- [lbClear](../../commands/lbClear.md): Clear all items from a CT_LISTBOX or CT_COMBO control.
- [lbColor](../../commands/lbColor.md): Returns the text color of the item with the given index of the CT_LISTBOX or CT_COMBO with IDC of the topmost user dialog.
- [lbColorRight](../../commands/lbColorRight.md): Returns the text color of the item (right) with the given index of the listbox or combobox with id idc of the topmost user dialog.
- [lbCurSel](../../commands/lbCurSel.md): Returns the index of the selected item of the CT_LISTBOX, CT_LISTNBOX, CT_COMBO or CT_TOOLBOX. For CT_LISTBOX with multi selection enabled use lbSelection.
- [lbData](../../commands/lbData.md): Returns the data set in given index of the CT_LISTBOX or CT_COMBO.
- [lbDelete](../../commands/lbDelete.md): Removes the item with the given index from the CT_LISTBOX, CT_COMBO or CT_TOOLBOX.
- [lbIsSelected](../../commands/lbIsSelected.md): Checks whether or not given row of the given listbox is selected.
- [lbPicture](../../commands/lbPicture.md): Returns the picture name of the item with the given index of the listbox or combobox with id idc of the topmost user dialog.
- [lbPictureRight](../../commands/lbPictureRight.md): Returns the right picture name of the item with the given index of the listbox or combobox with id idc of the topmost user dialog.
- [lbSelection](../../commands/lbSelection.md): Returns Array of selected rows indices in the given listbox. If listbox is of style LB_MULTI (multi-selection) the array will contain multiple elements, otherwise only a single element.
- [lbSetColor](../../commands/lbSetColor.md): Sets the color of the item (left) with the given index of the listbox or combobox with id idc of the topmost user Dialog to color.
- [lbSetColorRight](../../commands/lbSetColorRight.md): Sets the color of the item (right) with the given index of the listbox or combobox with id idc of the topmost user dialog to color.
- [lbSetCurSel](../../commands/lbSetCurSel.md): Selects the item with the given index in the listbox, listnbox, combobox, xcombobox, xlistbox
- [lbSetData](../../commands/lbSetData.md): Sets the additional text (invisible) in the item with the given index of the listbox or combobox with id idc of the topmost user dialog to the given data.
- [lbSetPicture](../../commands/lbSetPicture.md): Sets the left picture in the row with given index of CT_LISTBOX or CT_COMBO.
- [lbSetPictureColor](../../commands/lbSetPictureColor.md): Sets the color of item's picture (left) with the given index of the listbox with id idc of the topmost user dialog to the given color. Color is in format Color (RGBA).
- [lbSetPictureColorDisabled](../../commands/lbSetPictureColorDisabled.md): Sets the disabled color of item's picture (left) with the given index of the listbox with id idc of the topmost user dialog to the given color. Color is in format Color (RGBA).
- [lbSetPictureColorSelected](../../commands/lbSetPictureColorSelected.md): Sets the selected color of item's picture (left) with the given index of the listbox with id idc of the topmost user dialog to the given color. Color is in format Color (RGBA).
- [lbSetPictureRight](../../commands/lbSetPictureRight.md): Sets the second (right aligned) picture in the item with the given index of the listbox or combobox with id idc of the topmost user dialog. Name is the picture name.
- [lbSetPictureRightColor](../../commands/lbSetPictureRightColor.md): Sets the color of the second (right aligned) picture of the given index of the listbox with id idc of the topmost user dialog to the given color. Color which consists from only zeros means disable this override.
- [lbSetPictureRightColorDisabled](../../commands/lbSetPictureRightColorDisabled.md): Sets the disabled color of second (right aligned) picture of the item with the given index of the listbox with id idc of the topmost user dialog to the given color.
- [lbSetPictureRightColorSelected](../../commands/lbSetPictureRightColorSelected.md): Sets the selected color of the second (right aligned) picture of the item with the given index of the listbox with id idc of the topmost user dialog to the given color.
- [lbSetSelectColor](../../commands/lbSetSelectColor.md): Sets the select color of the item with the given index of the listbox or combobox with id idc of the topmost user dialog to color.
- [lbSetSelectColorRight](../../commands/lbSetSelectColorRight.md): Sets the select color of the of the secondary text (right aligned) of the item with the given index of the listbox or combobox with id idc of the topmost user dialog to color.
- [lbSetSelected](../../commands/lbSetSelected.md): Sets the selection state of the given row of the given listbox of style LB_MULTI. The command has to be called for every row which is needed to be selected in multi-selection listbox.
- [lbSetText](../../commands/lbSetText.md): Sets the text on the left side of the item with the given index of the listbox or combobox with id idc of the topmost user dialog.
- [lbSetTextRight](../../commands/lbSetTextRight.md): Sets the text on the right side of the item with the given row index of the listbox or combobox with id idc of the topmost user dialog.
- [lbSetTooltip](../../commands/lbSetTooltip.md): Sets tooltip for item with given index of the listbox or combobox with id idc of the topmost user dialog to the given data.
- [lbSetValue](../../commands/lbSetValue.md): Sets the additional value in the row with the given index of a CT_LISTBOX or CT_COMBO control.
- [lbSize](../../commands/lbSize.md): Returns the number of items in a CT_LISTBOX or CT_COMBO control. For CT_TOOLBOX size see lnbSize.
- [lbSort](../../commands/lbSort.md): Sorts listbox entries alphabetically ascending by their lbText.
- [lbSortBy](../../commands/lbSortBy.md): Sorts given ListBox by either lbText, lbValue or lbData in normal or reversed order, using case-sensitive or case-insensitive comparison. This command supports UNICODE characters.
- [lbSortByValue](../../commands/lbSortByValue.md): Sorts the ListBox entries by lbValue. The entries are sorted in ascending order. Also note that this command will mix up the entries randomly if multiple entries have the same value.
- [lbText](../../commands/lbText.md): Returns the shown text of the item with the given index of the CT_LISTBOX or CT_COMBO.
- [lbTextRight](../../commands/lbTextRight.md): Returns the shown right text in the item with the given index of the listbox or combobox with id idc of the topmost user dialog.
- [lbValue](../../commands/lbValue.md): Returns the additional integer value of the item with the given index of the CT_LISTBOX or CT_COMBO.
