Sign in Join

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

Mailing lists / lazarus / 2014-02

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

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Jesus Reyes
to Alejandro Gonzalo

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 escribi?:

It does in Delphi!

Show quoted text 12 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140212/9e8f870e/attachment.html>

Reply by email

Alejandro Gonzalo
to Jesus Reyes

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 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 escribi?:

It does in Delphi!

Show quoted text 12 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140213/7d96b4d5/attachment.html>

Reply by email

Alejandro Gonzalo
to Alejandro Gonzalo

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 , 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 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 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 escribi?:

It does in Delphi!

Show quoted text 12 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Bart
to Alejandro Gonzalo
Alejandro Gonzalo wrote
Why is there no interest in fixing this bug?

The reasoning behind this was explained to you.
If the grid already has focus, then clicking on the column title should _not_ trigger OnEnter. If Delphi behaves that way, it is a bug in Delphi.
We (Lazarus) are not a Delphi clone (by that I mean that we do not intentionally implement Delphi bugs in Lazarus)!

PLEASE fix in RC3! Thanks.

Please do not shout at us, it is rude.
After all, we're all volunteers, nobody of gets paid for developing Lazarus. You are, of course, more than welcome to supply a patch for us to evaluate. You can use the bugtracker for this.

Bart

Reply by email

Juha Manninen
to Bart
Bart wrote
The reasoning behind this was explained to you. If the grid already has focus, then clicking on the column title should _not_ trigger OnEnter.

Actually he wrote:
"I clicked on another component first to be sure the grid didn't have focus." which means it is a bug.

Alejandro, at least you must report it as a bug
http://bugs.freepascal.org/
There are already > 1600 open reports and all developers are volunteers with long ToDo-lists.
The only way to get this fixed quickly is to fix it yourself and provide a patch.
http://wiki.lazarus.freepascal.org/Creating_A_Patch

Juha

Reply by email

Bart
to Juha Manninen
Juha Manninen wrote 7 lines
> If the grid already has focus, then clicking on the column title > should _not_ trigger OnEnter. Actually he wrote: "I clicked on another component first to be sure the grid didn't have focus." which means it is a bug.

My bad, and apologies for that.

Bart

Reply by email