Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-05

TStringGrid.OnSelectEditor

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vojtěch Čihák

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150514/5741ae6f/attachment.html>

Reply by email

Jesus Reyes A.
to Vojtěch Čihák

En Wed, 13 May 2015 19:48:56 -0500, Vojt?ch ?ih?k
escribi?:

Show quoted text 47 lines
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 r49016

Jesus Reyes A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150514/5d14aea4/attachment.html>

Reply by email