[Patch] Multiple range select in grids
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
Using TCustomGrid and its descendants, TDrawGrid and TStringGrid, it is possible to select only a single cell range. Standard behavior, particularly of spreadsheet applications, is selection of multiple ranges which is achieve by holding the CTRL key down while the next ranges are selected by the mouse.
In the attached patch this behavior implemented also for TCustomGrid. There is a new property RangeSelectMode: TRangeSelectMode = (rsmSingle, rsmMulti). Multi-selection is achieved by setting this property to rsmMulti and having the grid option goRangeSelect set. The default behavior is rsmSingle and does not break existing programs.
After application of the patch, the new behavior can be tested on the attached demo (see also attached screenshot).
Mantis conversion info:
- Mantis ID: 27000
- Version: 1.3 (SVN)
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 46767 (#b60d0138)
- Target version: 1.2.8
- LazTarget: 1.4