<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 27/01/2013 23:35, Jesus Reyes wrote:<br>
    </div>
    <blockquote
cite="mid:1359329736.23707.YahooMailClassic@web120903.mail.ne1.yahoo.com"
      type="cite">
      <pre wrap="">

--- El dom 27-ene-13, Martin <a class="moz-txt-link-rfc2396E" href="mailto:lazarus@mfriebe.de"><lazarus@mfriebe.de></a> escribió:

</pre>
      <blockquote type="cite">
        <pre wrap="">De: Martin <a class="moz-txt-link-rfc2396E" href="mailto:lazarus@mfriebe.de"><lazarus@mfriebe.de></a>
Asunto: Re: [Lazarus] TStringGrid.AutoEdit and options
A: "Lazarus mailing list" <a class="moz-txt-link-rfc2396E" href="mailto:lazarus@lists.lazarus.freepascal.org"><lazarus@lists.lazarus.freepascal.org></a>
Fecha: domingo, 27 de enero de 2013, 5:54
On 27/01/2013 11:50, Martin wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">TStringGrid has:
- property AutoEdit:Boolean
- Options eoGoEdit
- Options eoAlwaysShowEditor

I figured some behavioural differences with the
</pre>
        </blockquote>
        <pre wrap="">options.
</pre>
        <blockquote type="cite">
          <pre wrap="">
But I can set AutoEdit True/False nothing changes. What
</pre>
        </blockquote>
        <pre wrap="">does it do? Or 
</pre>
        <blockquote type="cite">
          <pre wrap="">what Should it do?


Laz 1.1 SVN from 26th Jan / fpc 2.6.0 / Win Vista 32
</pre>
        </blockquote>
        <pre wrap="">bit
</pre>
        <blockquote type="cite">
          <pre wrap="">
</pre>
        </blockquote>
        <pre wrap="">
There also is a none public property FastEditing: Boolean

So there are 16 different settings. How to they all differ?
</pre>
      </blockquote>
      <pre wrap="">
goEditing: makes the grid editable or not (some will say it's equivalent to a readonly property)</pre>
    </blockquote>
    ok, so that is the main option, that must be set , or all others do
    nothing. (was my guess)<br>
    <br>
    <blockquote
cite="mid:1359329736.23707.YahooMailClassic@web120903.mail.ne1.yahoo.com"
      type="cite">
      <pre wrap="">
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.</pre>
    </blockquote>
    that one is obvious too, and seems to be prioritized over "AutoEdit"
    := False<br>
    <br>
    <blockquote
cite="mid:1359329736.23707.YahooMailClassic@web120903.mail.ne1.yahoo.com"
      type="cite">
      <pre wrap="">
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.

</pre>
    </blockquote>
    Ok, that one was not easy to figure. thanks.<br>
    <br>
    ----- <br>
    See the bug report on how those settings have side effects on the
    cursor keys....<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://bugs.freepascal.org/view.php?id=23756#c65213">http://bugs.freepascal.org/view.php?id=23756#c65213</a><br>
    <blockquote type="cite"><a name="bugnotes" id="bugnotes">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)<br>
      </a></blockquote>
    <br>
    <br>
    <br>
  </body>
</html>