[Lazarus] TStringGrid.OnSelectEditor

Vojtěch Čihák vojtech.cihak at atlas.cz
Thu May 14 15:57:30 CEST 2015


I tested with r. 49022. Works well.
 
Thank you!
 
______________________________________________________________
> Od: "Jesus Reyes A." <jesusrmx at gmail.com>
> Komu: Lazarus mailing list <lazarus at lists.lazarus.freepascal.org>
> Datum: 14.05.2015 09:05
> Předmět: Re: [Lazarus] TStringGrid.OnSelectEditor
>
En Wed, 13 May 2015 19:48:56 -0500, Vojtěch Čihák <vojtech.cihak at atlas.cz> escribió:


Hi,
 
I got troubles with TStringGrid. When I set:
 
goAlwaysShowEditor:=False;
goEditing:=True;
 
OnSelectEditor is triggered always when I select any cell, even if editor (built-in or custom) is not shown yet.
When I click the cell for the second time, editor is shown and OnSelectEditor is triggered again.
 
I guess it's a bug, after all there are other events for selecting cell (OnSelection, OnSelectCell).
 
Is it by design or should I report?
 
Thanks, V.
 
P.S.:
When options are:
goAlwaysShowEditor:=True;
goEditing:=True;
 
OR
 
goAlwaysShowEditor:=False;
goEditing:=False;
 
OnSelectEditor works as expected.
I think is not a bug (at least that kind of bug that is against the documentation).But I see no reason why it should work the way it does now, please check r49016Jesus Reyes A. 

----------

--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus <http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150514/1458f6b6/attachment-0003.html>


More information about the Lazarus mailing list