trapping the previous ActiveControl after the OnExit event fires
From: NewGuy (NewGuy_at_NewGuy.com)
Date: 10/24/03
- Next message: Marco van Kimmenade: "Re: Code completion advanced"
- Previous message: Jeremy Collins: "Re: Best place to put loading code in a modal form after the form has displayed"
- Next in thread: Kirk Halgren: "Re: trapping the previous ActiveControl after the OnExit event fires"
- Reply: Kirk Halgren: "Re: trapping the previous ActiveControl after the OnExit event fires"
- Reply: Peter Below (TeamB): "Re: trapping the previous ActiveControl after the OnExit event fires"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 24 Oct 2003 09:04:13 -0400
For openers, I have inherited this code and have limited leeway in what I am
permitted to change.
I have a child form that has an TdbEdit box where the user enters initials.
The Initials are validated when leaving the edit box by use of the TQuery's
Field OnValidate event. This design was in place and is on hundreds of
forms.
I am working on the parent of this form and have added additional checks and
verifications that are common to all the child forms. In a nut shell, if
certain verifications fail, I want to land them back on the TdbEdit box to
correct it (or else close the form since they may not be authorized to
proceed). I can easily handle the form closure at the ancestor but I am
having trouble finding a way to return to the Edit box. The edit box has
different names and locations on the various child forms (probably 100).
I vaguely remember setting the focus to the 'previous control' in a project
I did years ago but can't seem to come up with the logic. Since I am
intent to do this on the parent form (not where the TDBEdit box resides), I
can come up with no way to issue a Set Focus to the Control that had focus
prior to the Exit event firing.
Appreciate any help.
Larry Killen
- Next message: Marco van Kimmenade: "Re: Code completion advanced"
- Previous message: Jeremy Collins: "Re: Best place to put loading code in a modal form after the form has displayed"
- Next in thread: Kirk Halgren: "Re: trapping the previous ActiveControl after the OnExit event fires"
- Reply: Kirk Halgren: "Re: trapping the previous ActiveControl after the OnExit event fires"
- Reply: Peter Below (TeamB): "Re: trapping the previous ActiveControl after the OnExit event fires"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|