BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

tDBEdit.OnExit

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Hubert Anemaat
Guest





PostPosted: Wed Mar 02, 2005 10:47 pm    Post subject: tDBEdit.OnExit Reply with quote



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





PostPosted: Thu Mar 03, 2005 11:40 am    Post subject: Re: tDBEdit.OnExit Reply with quote




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





PostPosted: Thu Mar 03, 2005 10:40 pm    Post subject: Re: tDBEdit.OnExit Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.