Sign in Join

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

Mailing lists / lazarus / 2014-12

.OnEditingDone event

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Chris Crori

Hi!
I tried to use .OnEditingDone event on TEdit and found out that it is called like .OnExit, even if there was no change. Is this by design? I thought that to trigger a .OnEditingDone event, there shoud be a *beginning* in editing.

eg : A Form with 2 edits, clicking each one, makes the other one run a .OnEditingDone event every time!

Regards,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20141215/a894d3ec/attachment.html>

Reply by email

Mattias Gaertner
to Chris Crori
Hi! I tried to use .OnEditingDone event on TEdit and found out that it is called like .OnExit, even if there was no change.

A change compared to what?

Is this by design?

Yes.

I thought that to trigger a .OnEditingDone event, there shoud be a *beginning* in editing. eg : A Form with 2 edits, clicking each one, makes the other one run a .OnEditingDone event every time!

Correct.

Mattias

Reply by email

Chris Rempas
to Mattias Gaertner

Let's consider my example
.Onchange will be triggered every time i press i key on my edit.OnExit will be triggered every time my edit looses focus.OnEditingDone will be triggered every time my edit *believes* i am done editing? ? 1) When i press the Enter key, to confirm the data i just input ? ? 2) When the edit looses focus, but its data has been changed since the edit got focus ????
There is no reason to get a *Done Editing* event, if there has never been a *Start Editing*? Regards,Chris

On Monday, December 15, 2014 4:19 PM, Mattias Gaertner wrote:

Hi! ? ? I tried to use .OnEditingDone event on TEdit and found out that it is called like .OnExit, even if there was no change.

A change compared to what?

Is this by design?

Yes.

I thought that to trigger a .OnEditingDone event, there shoud be a *beginning* in editing. eg : A Form with 2 edits, clicking each one, makes the other one run a .OnEditingDone event every time!

Correct.

Mattias

Reply by email