Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On shutdown doesn't shift focus off field
Message
 
À
23/04/1999 14:49:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00211650
Message ID:
00211675
Vues:
25
>>I have an "on shutdown" routine that cycles through all forms and attempts to close them. If a form detects uncommitted changes to any data, it prompts the user if they will like to save or discharge them.
>>
>>The problem is that if the user is still in a textbox where changes have made but then they click the upper right "X" (to shutdown the app). The focus isn't taken off the textbox so the buffer doesn't know about the change in the contents of the textbox. How can I shift the focus off the textbox or force the changes into the buffer?
>
>I use _VFP.ActiveForm.ActiveControl.SetFocus, so the current control loses focus to regain it! :-)

Great. That did the trick.

Funny though that setting the focus to the control causes this behaviour. :-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform