On 27/01/2013 23:35, Jesus Reyes wrote:

--- El dom 27-ene-13, Martin <laza...@mfriebe.de> escribió:

De: Martin <laza...@mfriebe.de>
Asunto: Re: [Lazarus] TStringGrid.AutoEdit and options
A: "Lazarus mailing list" <lazarus@lists.lazarus.freepascal.org>
Fecha: domingo, 27 de enero de 2013, 5:54
On 27/01/2013 11:50, Martin wrote:
TStringGrid has:
- property AutoEdit:Boolean
- Options eoGoEdit
- Options eoAlwaysShowEditor

I figured some behavioural differences with the
options.
But I can set AutoEdit True/False nothing changes. What
does it do? Or
what Should it do?


Laz 1.1 SVN from 26th Jan / fpc 2.6.0 / Win Vista 32
bit
There also is a none public property FastEditing: Boolean

So there are 16 different settings. How to they all differ?
goEditing: makes the grid editable or not (some will say it's equivalent to a 
readonly property)
ok, so that is the main option, that must be set , or all others do nothing. (was my guess)

goAlwaysShowEditor: if the grid is editable as its name say it will make the 
editor always visible, no effect if the grid is not editable.
that one is obvious too, and seems to be prioritized over "AutoEdit" := False

as for AutoEdit, normally if the grid is editable clicking a selected cell will 
popup the cell editor, that's for AutoEdit=true and is what delphi stringgrid 
does, if you set AutoEdit=false editor will not pop up on clicking a selected 
cell, I forgot the reason this was added but as the Lazarus stringgrid allows 
range selection on editable grids, this may help in this case.

Ok, that one was not easy to figure. thanks.

-----
See the bug report on how those settings have side effects on the cursor keys....

http://bugs.freepascal.org/view.php?id=23756#c65213
except with eoAlwaysShowEditor and a selection of the first 3 of 5 chars, cursor right stays in the cell, while cursor left goes to neighbour cell. (without eoAlwaysShowEditor both cursor keys change cell)



--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to