Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms Losing Focus
Message
De
23/09/1997 13:31:50
 
 
À
23/09/1997 12:35:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00051239
Message ID:
00051256
Vues:
41
>I have a very complexe program with multiple forms and formsets. I also have a very complex keyboard routing routine embeded into alot of my textboxes. Every once in a while a customer calls and complains that a screen POPS up ( by clicking on that button) and then goes away. At this point, all hell breaks loose. The main forms object name is trashed and the program freaks. I have traced a number of these to the lost focus event being fired from a text box after another screen has been called. Some I can not find.
>
>Help me if possible, What I really want to do is NOT fire the lost focus if a button has been hit.
>
>Steve Britz

Unfortunately, LostFocus will fire any time you move the focus out. You can either use some property/flag (or NODEFAULT/DODEFAULT construction) to prevent firing of all event code, or better move LostFocus routine into some other event (usually InteractiveChange). Sometimes the solution is to reset the flag in InteractiveChange and use it (if changed) in LostFocus.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform