Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Entry form and Esc
Message
 
 
À
15/06/2005 05:07:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01023308
Message ID:
01023391
Vues:
9
>>Hi everybody,
>>
>>In MereMortals if I press ESC the form is released. If I was typing something in the textbox, then pressed ESC - the content of what I typed is deleted and the form is released without a question. I want a question asked "Do you want to save the changes?" and if yes, what I typed should be saved...
>>
>>How can I achieve this funcitonality?
>>
>>Thanks in advance.
>
>Apart from your wish for a confirmation, which is fully justifiable, you better want the question 'Do you want to abort?'. When the user presses No, you should act asif the ESC key was not pressed, so continue. In other words, the ESC key should never lead to a save. (This advice is universal, not scoped to MereMortals.)

The question asks "Do you want to save your changes?" Yes/No/Cancel. It works when you try to close form by close button (on the form, toolbar and right upper corner). I want similar functionality on ESC... I'm thinking, I would have to somehow save the value before ESC in form's property, then restore... But perhaps someone has it fully implemented already and can give me some ideas...

Thanks.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform