Re: [MSEide-MSEgui-talk] stringgrid multi select

2020-09-20 Thread fredvs
Re-re Hello Patrick, In attachment a litle demo of multi-cells selected. gridmultiselect.zip Fre;D --

Re: [MSEide-MSEgui-talk] stringgrid multi select

2020-09-20 Thread fredvs
Re-hello Patrick. You may use also the "oncellevent" method of grid. For example to select multi celsl you may do something like this: procedure Tmygridform.oncellev(const Sender: TObject; var info: celleventinfoty); begin if ((info.eventkind = cek_buttonrelease) or (info.eventkind =

Re: [MSEide-MSEgui-talk] stringgrid multi select

2020-09-20 Thread fredvs
Hello Patrick. I did not try/use multiselect option but to select rows by code, I use, for example 3 cellpos: grid.defocuscell; grid.datacols.clearselection; grid.selectcell(cellpos1, csm_select, False); grid.selectcell(cellpos2, csm_select, False);

[MSEide-MSEgui-talk] stringgrid multi select

2020-09-20 Thread Patrick
Hello, Has anyone used the multiselect options in a stringgrid? If so, what options are needed to make a multi selection? Thank you Patrick ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net

Re: [MSEide-MSEgui-talk] stringgrid multi select how to?

2018-12-23 Thread Patrick Goupell
What I want is the user viewing the string grid dowes a left click on a row. Then the user presses and holds (either) the shift key or the control key. And then left clicks on one (shift key held) or more (control key held) row(s) to get a range (shift) of rows or disjoint (control) row(s)

Re: [MSEide-MSEgui-talk] stringgrid multi select how to?

2018-12-23 Thread fredvs
Hello Patrick. For selection I use: function selectcell(const cell: gridcoordty; const amode: cellselectmodety; const checkmultiselect: boolean = false): boolean; For example to select first row: cellpos.row := 0; cellpos.col :=

[MSEide-MSEgui-talk] stringgrid multi select how to?

2018-12-22 Thread Patrick Goupell
I am trying to get a string grid to multiselect rows. I cannot find the correect optinos to set to do it. What options / flags do I need to set / unset for a multiselect row stringgrid? How do I know if the stringgrid is multiselected or only one row is selected? Thank you Patrick