I tend to agree with Rohit from a usability stand point. we often use OK
and Cancel instead of yes/ no.
Rob
Software engineer
Wild Software Ltd
[EMAIL PROTECTED]
----- Original Message -----
From: "Rohit Gupta" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 9:51 AM
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"