2015-10-12 20:45 UTC
First item highlighted:
_1_$ (dcl-ListBox-GetCurSel Std/ToolSelect/lstType)
0
Deselect first item:
_1_$ (dcl-ListBox-setCurSel Std/ToolSelect/lstType -1)
T
Query for item selected:
_1_$ (dcl-ListBox-GetCurSel Std/ToolSelect/lstType)
nil
ListBox has 19 items so this should return -1 saying no current selection.
Isn't nil representative of a ListBox with no items?
_1_$ (dcl-ListBox-GetCurSel Std/ToolSelect/lstType)
0
Deselect first item:
_1_$ (dcl-ListBox-setCurSel Std/ToolSelect/lstType -1)
T
Query for item selected:
_1_$ (dcl-ListBox-GetCurSel Std/ToolSelect/lstType)
nil
ListBox has 19 items so this should return -1 saying no current selection.
Isn't nil representative of a ListBox with no items?