Page MenuHomeFeedback Tracker

[Request] Alternate syntax for LBSetSelected
Feedback, NormalPublic

Description

I propose an alternate syntax for the scripting command LBSetSelected, where for the row parameter you can supply an array of rows to change their selected state.
LBSelected returns an array of rows which are currently selected, being able to provide this array into LBSetSelected immediately would be a handy addition, rather than having to iterate over the array deselecting each row given.
Currently

{
    _ctrl LBSetSelected[ _x, false ];
}foreach LBSelected _ctrl;

Proposed

_ctrl LBSetSelected[ LBSeleted _ctrl, false ];

Maybe also allow -1 as the row to deselect/select all, similar to the way LBSetCurSel works for deselecting all.

//Select all rows
_ctrl LBSetSelected[ -1, true ];

//Deselect all rows
_ctrl LBSetSelected[ -1, false ];

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

Larrow created this task.Sep 1 2022, 8:09 PM
Larrow updated the task description. (Show Details)Sep 1 2022, 8:16 PM
Larrow updated the task description. (Show Details)
Larrow updated the task description. (Show Details)
Larrow updated the task description. (Show Details)Sep 1 2022, 8:20 PM
Larrow updated the task description. (Show Details)Sep 1 2022, 8:32 PM
Larrow updated the task description. (Show Details)
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Sep 4 2022, 12:04 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.