[Lazarus] clicking a dbgrid's column title does not trigger OnEnter event as with Delphi

Alejandro Gonzalo parkingspace26 at yahoo.com
Sat Feb 22 22:33:53 CET 2014


Why is there no interest in fixing this bug?  There is a lot of code transferred from Delphi, and if you don't click on a column title during testing you won't know anything is wrong until a client screams at you.

Sure, you can fix it with a SetFocus in the OnTitleClick event of the grid, but why should you have to remember?

PLEASE fix in RC3!  Thanks.

A. G.





On Thursday, February 13, 2014 1:02 PM, Alejandro Gonzalo <parkingspace26 at yahoo.com> wrote:
 
I clicked on another component first to be sure the grid didn't have focus.  OnEnter IS triggered by clicking on a grid cell, but not column header.  Same for ActiveControl, which will break some code.  


A. G.




On Wednesday, February 12, 2014 8:18 PM, Jesus Reyes <jesusrmx at yahoo.com.mx> wrote:
 
One reason would be that Lazarus DbGrid it's not a Delphi DbGrid clone.

Without more information one can only speculate: OnEnter should be triggered in case the grid has not the focus, if it already has the focus, I don't see why OnEnter should be triggered on column click.


If you explain what you want to do, probably somebody could give you some alternative.

Jesus Reyes A.



El Miércoles, 12 de febrero, 2014 18:07:05, Alejandro Gonzalo <parkingspace26 at yahoo.com> escribió:
 
It does in Delphi!
>I have Laz 1.0.4 for Win7 64 bit.  Has this been fixed in a later version?  Or is there some reason this is different from Delphi?
>
>
>A. G.
>--
>_______________________________________________
>Lazarus mailing list
>Lazarus at lists.lazarus.freepascal.org
>http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
>



--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140222/4a3042d8/attachment-0003.html>


More information about the Lazarus mailing list