Actually, I use CreateMessageDIalog function to generate the standard one
and that massage it by reordering buttons, chaging the default, changing
their colour and size.  So you odnt have to reinvent the wheel.

I have my own ConfirmYesNo, COnfirmYesNoCancel, Warning, Information etc ..
where the confirm types require a default button and then use the
CreateMessageDlg to customise the beast.


----- Original Message -----
From: "Steve Peacocke" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, 21 June 2001 13:01
Subject: Re: [DUG]: Traps with MessDlg()


> From: "Rohit Gupta"
> >Steve,
> >
> >I think all those boxes should have yes/no/cancel buttons even if
> >cancel does the same as no.  :-)
>
> Gidday Rohit - must visit you again soon.
>
> Yes, we do mostly - when it suits to have a way out like that. In some
circumstances though you need the user to think (yea, I know...) about the
decision.
>
> Actually we only needed to change about a dozen or so anyway. Most were
written correctly.
>
> We did spend a lot of time trying to figure out how we could get rid of
the [x] box though - can't. It's Delphi VCL code and although we could
change it - it's not recomended and we would have to change it every time we
reloaded Delphi or upgraded.
>
> We also figured it wouldn't take much to write our own MessageDlg - but
again we had to slap ourselves around the head a few times repeating "Don't
re-invent the wheel" until we accepted what was given to us to work with.
>
> Steve (using a new web thingy to send email since he's away from his
computer - hope this works)
> --------------------------------------------------------------------------
-
>     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