Unlike the very similar CT_LIST(N)BOX, CT_COMBO controls can not be deselected with
_ctrl lbSetCurSel -1;
Instead it will select the first entry.
Unlike the very similar CT_LIST(N)BOX, CT_COMBO controls can not be deselected with
_ctrl lbSetCurSel -1;
Instead it will select the first entry.
Execute in Eden:
[] spawn { _d = findDisplay 313 createDisplay "RscDisplayEmpty"; _c = _d ctrlCreate ["RscCombo", -1]; for "_i" from 0 to 50 do { _c lbAdd format["Entry %1", _i]; }; _c lbSetCurSel random 50; uiSleep 2; _c lbSetCurSel -1; };
Combobox at all supporting not having a value selected is the bug. Combobox should always have something selected.
Would need fix in lbAdd but won't be done cuz back compat