Jump to navigation Jump to search
- Selects the item with the given index in the listbox, listnbox, combobox, xcombobox, xlistbox
- GUI Control - ListBox
- lbSetCurSel [idc, index]
- idc: Number - control's IDC
- index: Number
- Return Value:
- See also:
- Posted on Nov 29, 2014 - 23:40 (UTC)
- Prior to ArmA 1.90 lbSetCurSel -1 had no effect while the listbox was populated. You needed to use lbClear first, then lbSetCurSel -1, then re-populate the listbox.
- Posted on Mar 01, 2015 - 18:37 (UTC)
- Keep in mind that running this command will fire the 'onLBSelChanged' event handler.