Selection in Grids does not move on right mouse click
Original Reporter info from Mantis: zoran
-
Reporter name: Zoran Vučenović
Original Reporter info from Mantis: zoran
- Reporter name: Zoran Vučenović
Description:
In LCL Grids right mouse click does not move the selection.
In Delphi's VCL Grids, it does.
The Delphi's way is sometimes really needed, for example when a popup menu is attached to a DBGrid and user choses in menu to do something to selected item -- it is then appropriate that selection moves to just clicked item.
Additional information:
I beleive that the best would be to have a property which will determine this behaviour.
I'm attaching the patches which introduce new boolean property AnyMouseButtonMovesSelection - it is protected in TCustomGrid but published in TDrawGrid, TStringGrid and TDBGrid.
When this property is set to True, right mouse click moves the selection, which is compatible with Delphi behaviour. However, I put that False is default value, so that the behaviour of already written applications doesn't change.