[Lazarus] TStringGrid.AutoEdit and options

Jesus Reyes jesusrmx at yahoo.com.mx
Mon Jan 28 00:35:36 CET 2013



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

> De: Martin <lazarus at mfriebe.de>
> Asunto: Re: [Lazarus] TStringGrid.AutoEdit and options
> A: "Lazarus mailing list" <lazarus at 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)

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.

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.

Jesus Reyes A.




More information about the Lazarus mailing list