I disagree.

If you supply all three choices, you are misleading your users that there is
a third option avaliable.

For example, you are posting a table to a database, and you detect what
*may* be a typo with your error checking code, so you ask your user whether
or not they want the 'problem' to be fixed automatically.  The yes and no
choices are easy enough, but if you have a cancel button, the user should be
able to expect that by pressing it, they can cancel the whole operation
altogether...

(From the 'my two cents' division of:)

        -- Leon

-----Original Message-----
From: Rohit Gupta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 21 June 2001 09:52
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Traps with MessDlg()


Steve,

I think all those boxes should have yes/no/cancel buttons even if 
cancel does the same as no.  :-)

To:                     Multiple recipients of list delphi
<[EMAIL PROTECTED]>
Send reply to:          [EMAIL PROTECTED]
Date sent:              Wed, 20 Jun 2001 17:36:15 +1200
From:                   Steve Peacocke <[EMAIL PROTECTED]>
Subject:                [DUG]:  Traps with MessDlg()

> We came across an interesting little ditty the other day that you all may 
> want to take note of.
> 
> We had a MessageDlg like the following that gave the user the choice of
Yes 
> or No buttons...
> 
> If MessDlg('Warning: Silly thing done, Process Anyway?' ...) = mrNo then
>       Exit // and lose the changes
> else
>       PostAllChangesAndUpdateEverything;
> 
> Now the problem occured when a user, not sufficiently confident in what 
> he/she was doing, and not built for making management decisions like Yes
or 
> No, closed the message Dialog box by clicking on the little [x] on the
form 
> figuring that was a neat way not to have to make the decision to the 
> horrible question and make everything just go away.
> 
> A bit of testing showed that closing the form by using Alt-F4 or clicking 
> on the [x] will return an mrCancel even though there is no cancel button.
> 
> We took this insight calmly and in our stride and made the decision to 
> panic. We checked all our code (megs and megs of the bloody stuff) to
check 
> each call to MessageDlg to change the above to...
> 
> If MessDlg(....) <> mrYes then
> 
> 
> Steve Peacocke
> (025) 951-251
> 
> Dilbert: "Do not meddle in the affairs of dragons for thou art crunchy and

> wouldst taste good with sauce"
> 
>
---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED] 
> with body of "unsubscribe delphi"
> 


Regards

Rohit

======================================================================
CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
PH    (649) 489-2280 
FX    (649) 489-2290
email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
======================================================================

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to