Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Good question
Message
 
 
À
08/04/2013 15:54:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01570404
Message ID:
01570414
Vues:
36
>The problem with dialogs is users don't read them. They get too many of them and typically they just select Yes or OK and move on. Typical user workflow:
>1. Click the X to close window
>2. See a dialog popup
>3. Click Yes
>4. Realize you just lost your changes and you wanted to save them
>5. Swear
>
This is really good point!

Unfortunately, it brings me back to the question I formulated at the beginning of this thread.

I just changed the method to be
 IF VARTYPE(m.tcMode) = 'C' AND m.tcMode = 'Close'
       lcQuestion =  "You have unsaved changes. Do you really want to close this form without saving?"
    ELSE
       lcQuestion = "You have unsaved changes. Do you really want to cancel them?"    
    endif
	if messagebox(m.lcQuestion,4+16, 'Cancel Changes') = 7 && No - we want to save changes
		if not thisform.save()
		    llReturn = .f.
			nodefault
		endif
	else
	...
which I guess it still bad. Since the default choice is 'Yes', it means we don't want to save changes.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform