| View previous topic :: View next topic |
| Author |
Message |
Hubert Anemaat Guest
|
Posted: Wed Mar 02, 2005 10:47 pm Post subject: tDBEdit.OnExit |
|
|
Hello,
I have some code in tDBEdit.OnExit. On our PC's this code is executed when
closing the Window by pressing on the button Close. On the PC of one of our
clients, this code is not executed.
Why is tDBEdit.OnExit on one PC executed and on another one not ?
Thanks,
Hubert Anemaat
|
|
| Back to top |
|
 |
Jackson Gomes - Tools&Com Guest
|
Posted: Thu Mar 03, 2005 11:40 am Post subject: Re: tDBEdit.OnExit |
|
|
| Quote: | I have some code in tDBEdit.OnExit. On our PC's this code is executed when
closing the Window by pressing on the button Close. On the PC of one of
our
clients, this code is not executed.
Why is tDBEdit.OnExit on one PC executed and on another one not ?
|
Maybe when your application is closing, the focus is not in your DBEdit. The
OnExit is fired only if the control has the focus.
Try to set the focus to this component on the OnCloseQuery event of your
form.
Regards
--
Jackson Gomes
Tools&Comps - Security Components for Borland Developers.
Web Site: http://www.toolsandcomps.com
Our Forum: http://groups.yahoo.com/group/toolsandcomps
e-mail: [email]jackson (AT) toolsandcomps (DOT) com[/email]
Phone: 55 27 99602760 / 55 27 33891138
|
|
| Back to top |
|
 |
Hubert Anemaat Guest
|
Posted: Thu Mar 03, 2005 10:40 pm Post subject: Re: tDBEdit.OnExit |
|
|
Problem solved. It was a miscommunication between my client and me.
Hubert Anemaat
"Jackson Gomes - Tools&Comps" <jackson (AT) toolsandcomps (DOT) com> schreef in bericht
news:4226f717 (AT) newsgroups (DOT) borland.com...
| Quote: |
I have some code in tDBEdit.OnExit. On our PC's this code is executed
when
closing the Window by pressing on the button Close. On the PC of one of
our
clients, this code is not executed.
Why is tDBEdit.OnExit on one PC executed and on another one not ?
Maybe when your application is closing, the focus is not in your DBEdit.
The
OnExit is fired only if the control has the focus.
Try to set the focus to this component on the OnCloseQuery event of your
form.
Regards
--
Jackson Gomes
Tools&Comps - Security Components for Borland Developers.
Web Site: http://www.toolsandcomps.com
Our Forum: http://groups.yahoo.com/group/toolsandcomps
e-mail: [email]jackson (AT) toolsandcomps (DOT) com[/email]
Phone: 55 27 99602760 / 55 27 33891138
|
|
|
| Back to top |
|
 |
|