Re: [MSEide-MSEgui-talk] stringgrid multi select how to?
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) selected. The user would then rigth click on any selected row to get a popup menu of available actions. This would be similar to a file/directory list and selecting different files to copy / delete from a folder / directory. Patrick ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] stringgrid multi select how to?
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 := 0; thestringgrid.selectcell(cellpos, csm_select, False); And to access/change data in the stringgrid, for example: thestringgrid[1][2] := 'thedata'; But, sure, advice of Martin would be better. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk