If you had written software for me, and I spent an hour filling in data, then accidentally hit ALT+F4 and lost my changes, I'd have you on the carpet in my office demanding my money back for incompetence.
No well built software app lets users discard data without verifying it and no self respecting developer writes software that way.
>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
>
>
>>I am trying to use the standard VFP messagebox. I know I can use Cesar's messagebox that allows different prompts for the buttons, but I do not want to introduce extra stuff right now in that project.
>>
>>Also, it is not only for Exit with an x button. For some reason we want non-standard behavior for the Revert button (we currently have Apply and Revert). Even though it says 'Revert' we still want to provide this prompt.
>>
>>May be I need to discuss this with my colleague, though, who wrote the design as it is too non standard.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people