On 3/30/06, Alexander Todorov <[EMAIL PROTECTED]> wrote:
> On 3/30/06, Matthijs Willemstein <[EMAIL PROTECTED]> wrote:
> > Sorry, for the topposting, but I'm on a Windows box right know. :(
> > You never know what happens in event driven programs. So if the doubleclick
> > event closes the form, it can happen that the control loses focus and so the
> > OnExit is triggered.
> > There is a simple solution to this and that is define a private property of
> > your form which you send to true in the OnDoubleClick event. In the OnExit
> > event you check this property and if it is true you leave the event method.
> >
> > Matthijs
>
> OK that's correct. It is no problem for my application to do so. The
> question is that it does not happen in Delphi. Tested with Delphi 7.
> If this is a feature not a bug it is breaking Delphi compatibility.
>
I have tested this under Windows XP with the new Lazarus 0.9.14. The
behaviour is the same. When the form is closed the OnExit event for
the TDBGrid is fired.
@Lazarus team :
Is this a bug or a feature? Should I report it in mantis?
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives